Network Selection APIs
The network selection APIs provide the means to choose the transport on
which an application should run. These APIs are typically used by the
applications that use the intermediate-level and expert-level TI-RPC APIs.
The network selection APIs are:
- endnetconfig() (Release the pointer in the netconfig file) releases the pointer to the records stored in the netconfig file.
- freenetconfigent() (Free the netconfig structure) frees the netconfig structure that is returned from the call to the getnetconfigent() function.
- getnetconfig() (Return current record from the netconfig file) returns the pointer to the current record in the netconfig file and increments its pointer to the next record.
- getnetconfigent() (Return a pointer to a netconfig structure) returns the pointer to the netconfig structure that corresponds to the input netid.
- setnetconfig() (Initialize the pointer in the netconfig file) initializes the record pointer to the first entry in the netconfig file.