socket_valid_family(3ncs) 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 is equal to status_$ok , then the routine 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);
Files
See Also
intro(3ncs), socket_valid_families(3ncs)
socket_valid_family(3ncs)