TCP/IP Programming Manual

char _ptr64 * buffer_ptr64;
int buffer_length, r_buffer_length, flags;
struct sockaddr * addr;
long long tag;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
error := recvfrom_nw64_ (socket, buffer_ptr64, buffer_length,
flags, r_buffer_ptr, r_buffer_length,
tag );
INT(32) error, socket;
STRING .EXT64 buffer_ptr64;
INT(32) buffer_length, flags;
INT .EXT r_buffer_ptr(sockaddr_in);
INT(32) r_buffer_length;
INT(64) tag;
error
return value; if the call is successful, a zero is returned. If the call is not successful, –1 is returned.
If the call fails, the external variable errno is set as shown in Errors (page 165).
socket
input value; specifies the socket number for the socket, as returned by the call to socket_nw.
buffer_ptr64
input and return value; a character pointer to the data returned by the call to recvfrom_nw64_.
buffer_length
input value; the integer length of the data buffer pointed to by buffer_ptr64.
r_buffer_ptr
input and return value; not used by the recvfrom_nw64_ call. Call socket_get_info to
get the socket address (parameter sockaddr_buffer). A dummy parameter must still be
passed to satisfy the recvfrom_nw64_ call.
r_buffer_length
input and return value; no longer used by the recvfrom_nw64_ call to determine the
r_buffer_ptr64 size because r_buffer_ptr64 is not used; however, recvfrom_nw64_
still requires a valid value for this parameter. Call socket_get_info (page 194) to get the socket
address structure length (parameter buflen).
flags
input value; maintained for compatibility; set to 0.
tag
input value; the tag parameter to be used for the nowait operation initiated by
recvfrom_nw64_.
Errors
If an error occurs, the return value is set to –1 and the external variable errno is set to one of the
following values:
The specified socket was connected.EISCONN
The specified socket was shut down.ESHUTDOWN
An invalid argument was specified.EINVAL
recvfrom_nw64_ 165