Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(3ncs)

socket_valid_family(3ncs)

socket_valid_families(3ncs)

Name

socket_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 /usr/include/idl/nbase.idl. 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 status.all is equal to status_$ok , then the routine that supplied it was successful. 

Description

The socket_$valid_families 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);

Files

/usr/include/idl/socket.idl
/usr/include/idl/c/socket.h

See Also

intro(3ncs), socket_valid_family(3ncs)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026