nut/include/sys/sock_var.h File Reference


Detailed Description

UDP and TCP socket interface definitions.

#include <stdint.h>
#include <sys/types.h>
#include <sys/device.h>
#include <dev/netbuf.h>
#include <netinet/tcp_fsm.h>

Data Structures

struct  tcp_socket
 TCP socket information structure. More...
struct  udp_socket
 UDP socket information structure. More...

Defines

#define SO_ACK   0x10
 Socket transmit flag. Send ACK.
#define SO_FIN   0x01
 Socket transmit flag. Send FIN after all data has been transmitted.
#define SO_FORCE   0x08
 Socket transmit flag. Force sending ACK.
#define SO_SYN   0x02
 Socket transmit flag. Send SYN first.

Typedefs

typedef tcp_socket TCPSOCKET
 TCP socket type.
typedef udp_socket UDPSOCKET
 UDP socket type.

Functions

int NutTcpOutput (TCPSOCKET *sock, CONST uint8_t *data, uint16_t size)
int NutTcpReject (NETBUF *nb)
int NutUdpInput (NUTDEVICE *dev, NETBUF *nb)
int NutUdpOutput (UDPSOCKET *sock, uint32_t dest, uint16_t port, NETBUF *nb)


Generated on Wed Apr 29 11:12:30 2009 for BTnut System Software by doxygen 1.5.1