IPX/SPX Programming Manual

Library Routines
HP NonStop IPX/SPX Programming Manual528022-001
5-37
recvfrom_nw
recvfrom_nw
The recvfrom_nw function receives data on an unconnected IPX socket created for
nowait operations.
error
is the return value. If the call is successful, a zero is returned. If the call is not
successful, -1 is returned. If the call failed, the external variable errno is set as
indicated below in “Errors.”
socket
specifies the socket number for the socket, as returned by the call to socket_nw.
buffer_ptr
Character pointer to the data returned by the call to recvfrom_nw.
buffer_length
Integer length of the data buffer pointed to by buffer_ptr.
C Synopsis
#include <socket.h>
#include <nv.h>
#include <netdb.h>
error = recvfrom_nw (socket, buffer_ptr, buffer_length,
flags, r_buffer_ptr, r_buffer_length,
tag );
int socket, buffer_length, r_buffer_length, error,
flags;
char * buffer_ptr;
struct sockaddr_in *r_buffer_ptr;
long tag;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
error := recvfrom_nw (socket, buffer_ptr, buffer_length,
flags, r_buffer_ptr, r_buffer_length,
tag );
INT socket, buffer_length, r_buffer_length, flags;
STRING .EXT buffer_ptr;
INT .EXT r_buffer_ptr(sockaddr_nv);
INT(32) tag;