IPX/SPX Programming Manual
Library Routines
HP NonStop IPX/SPX Programming Manual—528022-001
5-38
recvfrom_nw
r_buffer_ptr
is not used by the recvfrom_nw call. Call socket_get_info on page 5-59 to get the
socket address (parameter sockaddr_buffer). A dummy parameter must still be
passed to satisfy the recvfrom_nw call.
r_buffer_length
is no longer used by the recvfrom_nw call to determine the r_buffer_ptr size
since r_buffer_ptr is no longer used; however, recvfrom_nw still requires a
valid value for this parameter. Call socket_get_info on page 5-59 to get the socket
address structure length (parameter buflen).
flags
is maintained for compatibility; set to 0.
tag
is the tag parameter to be used for the nowait operation initiated by send_nw2.
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:
Usage Guidelines
•
This is a nowait call; it must be completed with a call to the AWAITIOX procedure.
For a waited call, use recvfrom.
•
Note parameters of the recvfrom_nw function are not compatible with those of
the recvfrom function in the 4.3 BSD UNIX operating system.
•
The length of the received data is given in the third parameter (count transferred)
returned from the AWAITIOX procedure. This length includes the address
information given by
sizeof(sockaddr_in), or sizeof(sockaddr_nv) at
the beginning of the buffer.
For information about error checking, see Nowait Call Errors on page 5-5.
EISCONN The specified socket was connected.
ESHUTDOWN The specified socket was shut down.
EINVAL An invalid argument was specified.