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...


#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.


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


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
!!! Dieses Dokument stammt aus dem ETH Web-Archiv und wird nicht mehr gepflegt !!!
!!! This document is stored in the ETH Web archive and is no longer maintained !!!