Header for the Contiki/uIP interface.
Data Structures | |
struct | tcpip_uipstate |
Macros | |
#define | UIP_APPCALL tcpip_uipcall |
The name of the application function that uIP should call in response to TCP/IP events. More... | |
#define | UIP_ICMP6_APPCALL tcpip_icmp6_call |
#define | UIP_UDP_APPCALL tcpip_uipcall |
Typedefs | |
typedef struct tcpip_uipstate | uip_icmp6_appstate_t |
typedef struct tcpip_uipstate | uip_tcp_appstate_t |
The type of the application state that is to be stored in the uip_conn structure. More... | |
typedef struct tcpip_uipstate | uip_udp_appstate_t |
The type of the application state that is to be stored in the uip_conn structure. More... | |
Functions | |
PROCESS_NAME (tcpip_process) | |
void | tcpip_uipcall (void) |
Variables | |
CCIF process_event_t | tcpip_event |
The uIP event. More... | |
TCP functions | |
#define | tcp_markconn(conn, appstate) tcp_attach(conn, appstate) |
CCIF void | tcp_attach (struct uip_conn *conn, void *appstate) |
Attach a TCP connection to the current process. More... | |
CCIF void | tcp_listen (uint16_t port) |
Open a TCP port. More... | |
CCIF void | tcp_unlisten (uint16_t port) |
Close a listening TCP port. More... | |
CCIF struct uip_conn * | tcp_connect (uip_ipaddr_t *ripaddr, uint16_t port, void *appstate) |
Open a TCP connection to the specified IP address and port. More... | |
void | tcpip_poll_tcp (struct uip_conn *conn) |
Cause a specified TCP connection to be polled. More... | |
UDP functions | |
#define | udp_markconn(conn, appstate) udp_attach(conn, appstate) |
#define | udp_bind(conn, port) uip_udp_bind(conn, port) |
Bind a UDP connection to a local port. More... | |
void | udp_attach (struct uip_udp_conn *conn, void *appstate) |
Attach the current process to a UDP connection. More... | |
CCIF struct uip_udp_conn * | udp_new (const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate) |
Create a new UDP connection. More... | |
struct uip_udp_conn * | udp_broadcast_new (uint16_t port, void *appstate) |
Create a new UDP broadcast connection. More... | |
CCIF void | tcpip_poll_udp (struct uip_udp_conn *conn) |
Cause a specified UDP connection to be polled. More... | |
ICMPv6 functions | |
CCIF process_event_t | tcpip_icmp6_event |
The ICMP6 event. More... | |
uint8_t | icmp6_new (void *appstate) |
register an ICMPv6 callback More... | |
void | tcpip_icmp6_call (uint8_t type) |
This function is called at reception of an ICMPv6 packet If an application registered as an ICMPv6 listener (with icmp6_new), it will be called through a process_post_synch() More... | |
TCP/IP packet processing | |
#define | tcpip_set_forwarding(forwarding) tcpip_do_forwarding = (forwarding) |
unsigned char | tcpip_do_forwarding |
Is forwarding generally enabled? More... | |
unsigned char | tcpip_is_forwarding |
CCIF void | tcpip_input (void) |
Deliver an incoming packet to the TCP/IP stack. More... | |
uint8_t | tcpip_output (const uip_lladdr_t *) |
Output packet to layer 2 The eventual parameter is the MAC address of the destination. More... | |
void | tcpip_set_outputfunc (uint8_t(*f)(const uip_lladdr_t *)) |
void | tcpip_ipv6_output (void) |
This function does address resolution and then calls tcpip_output. More... | |