IPX/SPX Programming Manual
Library Routines
HP NonStop IPX/SPX Programming Manual—528022-001
5-15
accept_nw2
accept_nw2
The accept_nw2 function accepts a connection on a new socket created for nowait
data transfer. Before calling this procedure, a program should call accept_nw on an
existing socket, then call socket_nw to create the new socket to be used by
accept_nw2.
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.”
new_socket
is the socket number for the new socket on which the connection is to be accepted,
as returned by a call to socket_nw.
from_ptr
points to the IPX address data structure, returned from the call to accept_nw.
tag
is the tag parameter to be used for the nowait operation.
C Synopsis
#include <socket.h>
#include <nv.h>
#include <netdb.h>
error = accept_nw2 (new_socket, from_ptr, tag);
int new_socket, error;
long tag;
struct sockaddr *from_ptr;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
error := accept_nw2 (new_socket, from_ptr, tag);
INT new_socket;
INT(32) tag;
INT EXT from_ptr(sockaddr);