The friendly Operating System for the Internet of Things

Raw IPv4/IPv6 connection definitions. More...

Detailed Description

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

Go to the source code of this file.

Typedefs

typedef struct conn_ip conn_ip_t
 Implementation-specific type of a raw IPv4/IPv6 connection object.
 

Functions

int conn_ip_create (conn_ip_t *conn, const void *addr, size_t addr_len, int family, int proto)
 Creates a new raw IPv4/IPv6 connection object. More...
 
void conn_ip_close (conn_ip_t *conn)
 Closes a raw IPv4/IPv6 connection. More...
 
int conn_ip_getlocaladdr (conn_ip_t *conn, void *addr)
 Gets the local address of a raw IPv4/IPv6 connection. More...
 
int conn_ip_recvfrom (conn_ip_t *conn, void *data, size_t max_len, void *addr, size_t *addr_len)
 Receives a message over IPv4/IPv6. More...
 
int conn_ip_sendto (const void *data, size_t len, const void *src, size_t src_len, void *dst, size_t dst_len, int family, int proto)
 Sends a message over IPv4/IPv6. More...