socket_valid_families(3ncs)socket_valid_families(3ncs)Namesocket_valid_families - obtain a list of valid address families
Syntax
#include <idl/c/socket.h>
void socket_$valid_families(max_families, families, status)
unsigned long *max_families;
socket_$addr_family_t families[ ];
status_$t *status;
Arguments
max_families The maximum number of families that can be
returned.
families[ ] An array of socket_$addr_family_t. Possible values
for this type are enumerated in Currently, only ip
is supported for family.
status The completion status. This variable is set if the
families[ ] array is not long enough to hold all
the valid families. If the completion status
returned in is equal to status_$ok , then the rou‐
tine that supplied it was successful.
Description
The routine returns a list of the address families that are valid on
the calling host.
Examples
The following routine returns the valid address family:
socket_$valid_families (1, &families, $status);
FilesSee Alsointro(3ncs), socket_valid_family(3ncs)socket_valid_families(3ncs)