socket_valid_family(3ncs)
Name
socket_valid_family − check whether an address family is valid
Syntax
#include <idl/c/socket.h>
boolean socket_$valid_family(family, status)
unsigned long family;
fBstatus_$t *status;
Arguments
family The integer representation of an address family.
status The completion status. If the completion status returned in status.all is equal to status_$ok , then the routine that supplied it was successful.
Description
The socket_$valid_family routine returns ‘true’ if the specified address family is valid for the calling host, ‘false’ if not valid.
Examples
The following routine checks whether socket_$internet is a valid address family:
internetvalid = socket_$valid_family(socket_$internet, &status);
Files
/usr/include/idl/socket.idl
/usr/include/idl/c/socket.h