socket_valid_family(3ncs)socket_valid_family(3ncs)Namesocket_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 is equal to status_$ok , then the rou‐
tine that supplied it was successful.
Description
The 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);
FilesSee Alsointro(3ncs), socket_valid_families(3ncs)socket_valid_family(3ncs)