Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

UDP Protocol

RFC 768 user datagram protocol. More...

Functions

void NutUdpInput (NETBUF *nb)
 Handle incoming UDP packets. More...

int NutUdpOutput (UDPSOCKET *sock, u_long daddr, u_short port, NETBUF *nb)
 Send an UDP packet. More...


Detailed Description

RFC 768 user datagram protocol.

UDP only provides checksumming of data and multiplexing by port number. Therefore, an application program must deal directly with end-to-end communication problems like retransmission, flow control etc., if required.


Function Documentation

void NutUdpInput ( NETBUF * nb )
 

Handle incoming UDP packets.

Note:
This routine is called by the IP layer on incoming UDP packets. Applications typically do not call this function.
Parameters:
nb   Network buffer structure containing the UDP packet.

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

Send an UDP packet.

Note:
Applications typically do not call this function but use the UDP socket interface.

Returns:
0 on success, -1 otherwise.


© 2000-2001 by egnite Software GmbH - visit http://www.ethernut.de/