Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

uip.c File Reference


Detailed Description

The uIP TCP/IP stack code.

Author:
Adam Dunkels <adam@dunkels.com>

#include "uip.h"
#include "uipopt.h"
#include "uip_arch.h"

Functions

void uip_add32 (u8_t *op32, u16_t op16)
 Carry out a 32-bit addition.

void uip_init (void)
 uIP initialization function.

uip_connuip_connect (uip_ipaddr_t *ripaddr, u16_t rport)
 Connect to a remote host using TCP.

uip_udp_connuip_udp_new (uip_ipaddr_t *ripaddr, u16_t rport)
 Set up a new UDP connection.

void uip_unlisten (u16_t port)
 Stop listening to the specified port.

void uip_listen (u16_t port)
 Start listening to the specified port.

u16_t htons (u16_t val)
 Convert 16-bit quantity from host byte order to network byte order.

void uip_send (const char *data, int len)
 Send data on the current connection.


Variables

u8_t uip_buf [UIP_BUFSIZE+2]
 The uIP packet buffer.

u8_t * uip_appdata
 Pointer to the application data in the packet buffer.

u8_t uip_acc32 [4]
 4-byte array used for the 32-bit sequence number calculations.


Generated on Wed Jul 6 01:19:04 2005 for Contiki/ESB by doxygen 1.3.6