udp(6p) DG/UX R4.11MU05 udp(6p)
NAME
UDP - Communications Protocol Internet User Datagram Protocol
SYNOPSIS
#include <sys/socket.h>
#include <netinet/udp.h>
This is an example of how you would create an endpoint for the UDP
connection:
s = socket(AFINET, SOCKDGRAM, 0);
DESCRIPTION
UDP is a simple, unreliable datagram protocol that is used to support
the SOCK_DGRAM abstraction for the Internet protocol family.
UDP sockets are connectionless, and are normally used with the
sendto(2) and recvfrom(2) calls. The connect(2) and bind(2) calls
may also be used to fix the destination for future packets (in which
case the recv(2) or read(2) and send(2) or write(2) system calls may
be used). Listen(2) and accept(2) are not valid operations on
datagram sockets.
SEE ALSO
send(2), recv(2), sendto(2), recvfrom(2).
intro(6), inet(6F), Programming with TCP/IP on the DG/UX (Trademark)
System.
Licensed material--property of copyright holder(s)