TCP/IP Programming Manual
/* Notice that fhost below is cast to struct sockaddr * 
as suggested in the Usage Guidelines */
status = recvfrom(rsock, buffer, tosend,
 0, (struct sockaddr *)&fhost, &len);
recvfrom64_
The recvfrom64_ function receives data on an unconnected UDP socket or raw socket created
for waited operations.
C Synopsis
#include <socket.h>
#include <in.h>
#include <in6.h> /* for IPv6 use */
#include <netdb.h>
nrcvd = recvfrom64_ (socket, buffer_ptr64, buffer_length, flags,
from_ptr64, from_length64);
 int nrcvd, socket; 
 char _ptr64 *buffer_ptr64;
 int buffer_length, flags;
 struct sockaddr _ptr64 * from_ptr64;
 int _ptr64 *from_length64;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
nrcvd := recvfrom64_ (socket, buffer_ptr64, buffer_length, flags,
from_ptr64, from_length64);
 INT(32) nrcvd,
socket; 
 STRING .EXT64 buffer_ptr64;
 INT(32) buffer_length, 
flags;
 INT .EXT64 from_ptr64(sockaddr_in);
 INT .EXT64 from_length64;
nrcvd
return value; the number of bytes received.
If the call is not successful, –1 is returned, and the external variable errno is set as shown in
Errors (page 161).
socket
input value; specifies the socket number for the socket, as returned by the call to the socket
function.
buffer_ptr64
input value; on return, points to the received data.
buffer_length
input value; the size of the buffer pointed to by buffer_ptr64.
160 Library Routines










