DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Developing applications over TCP/IP using Internet sockets

Receiving on datagram sockets (Internet domain)

To receive data on an unconnected datagram socket, use recvfrom:

recvfrom (s, buf, buflen, flags, (struct sockaddr *) &from, &fromlen);

fromlen initially contains the size of the from buffer, and is modified on return to indicate the actual size of the address from which the datagram was received.

For an example, see ``Reading Internet domain datagrams''.


Next topic: Using connect on a datagram socket (Internet domain)
Previous topic: Sending from datagram sockets (Internet domain)

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003