TCP/IP Programming Manual

sendto_nw64_(socket,(char _ptr64*) bp, sizeof(bp), 0, (struct sockaddr *)&fhost,len,0L);
FILE_AWAITIO64_(&ret_fd, (char _ptr64*)&snw, &cc, &ret_tag, 0D,-1);
cc = socket_get_len(socket);
if (cc < 0) break;
bp += cc;
};
setsockopt, setsockopt_nw
The setsockopt and setsockopt_nw functions set the socket options for a socket.
NOTE: In CIP, certain setsockopt and setsockopt_nw operations are not supported or may have
different defaults or different behavior. See the Cluster I/O Protocols (CIP) Configuration and
Management Manual for details.
C Synopsis
#include <socket.h>
#include <in.h>
#include <in6.h> /* for IPv6 use */
#include <netdb.h>
error = setsockopt (socket, level, optname, optval_ptr,
optlen);
error = setsockopt_nw (socket, level, optname, optval_ptr,
optlen, tag);
int error, socket, level, optname;
char *optval_ptr;
int optlen;
long tag;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
error := setsockopt (socket, level, optname, optval_ptr,
optlen);
error := setsockopt_nw (socket, level, optname, optval_ptr,
optlen, tag);
INT(32) error,
socket,
level,
optname;
STRING .EXT optval_ptr;
INT(32) optlen;
INT(32) tag;
error
return value; f 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 in Errors (page 188).
socket
input value; specifies the socket number for the socket, as returned by the call to socket or
socket_nw.
184 Library Routines