IPX/SPX Programming Manual
Library Routines
HP NonStop IPX/SPX Programming Manual—528022-001
5-63
socket_ioctl, socket_ioctl_nw
socket_ioctl,
socket_ioctl_nw
The socket_ioctl and socket_ioctl_nw functions perform a control operation on
a socket.
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 or
socket_nw.
command
specifies the operation to be performed on the socket. Supported operations are
listed in Table 5-3.
C Synopsis
#include <socket.h>
#include <nv.h>
#include <ioctl.h>
#include <netdb.h>
error = socket_ioctl (socket, command, arg_ptr);
error = socket_ioctl_nw (socket, command, arg_ptr, tag);
int error, socket, command;
long tag;
char *arg_ptr;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
error := socket_ioctl (socket, command, arg_ptr);
error := socket_ioctl_nw (socket, command, arg_ptr, tag);
INT socket,
command;
STRING .EXT arg_ptr;
INT(32) tag;