E:/Projects/AvrLib/include/sys/sock_var.h File Reference

UDP and TCP socket interface definitions. More...

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

Include dependency graph for sock_var.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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

Defines

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

Typedefs

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

Functions

void NutUdpInput (NETBUF *nb, ureg_t bcast)
int NutUdpOutput (UDPSOCKET *sock, u_long dest, u_short port, NETBUF *nb)
int NutTcpOutput (TCPSOCKET *sock, CONST u_char *data, u_short size)
int NutTcpReject (NETBUF *nb)


Detailed Description

UDP and TCP socket interface definitions.

Definition in file sock_var.h.


Function Documentation

int NutTcpOutput ( TCPSOCKET sock,
CONST u_char data,
u_short  size 
)

int NutTcpReject ( NETBUF *  nb  ) 

void NutUdpInput ( NETBUF *  nb,
ureg_t  bcast 
)

int NutUdpOutput ( UDPSOCKET sock,
u_long  dest,
u_short  port,
NETBUF *  nb 
)


Generated on Sun Aug 31 13:30:40 2008 for FrankenRTOS by  doxygen 1.5.6