The friendly Operating System for the Internet of Things

UDP connection definitions. More...

Detailed Description

#include <stdint.h>
#include <stdlib.h>
+ Include dependency graph for conn/udp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


typedef struct conn_udp conn_udp_t
 Implementation-specific type of a UDP connection object.


int conn_udp_create (conn_udp_t *conn, const void *addr, size_t addr_len, int family, uint16_t port)
 Creates a new UDP connection object. More...
void conn_udp_close (conn_udp_t *conn)
 Closes a UDP connection. More...
int conn_udp_getlocaladdr (conn_udp_t *conn, void *addr, uint16_t *port)
 Gets the local address of a UDP connection. More...
int conn_udp_recvfrom (conn_udp_t *conn, void *data, size_t max_len, void *addr, size_t *addr_len, uint16_t *port)
 Receives a UDP message. More...
int conn_udp_sendto (const void *data, size_t len, const void *src, size_t src_len, const void *dst, size_t dst_len, int family, uint16_t sport, uint16_t dport)
 Sends a UDP message. More...