- pINetMgr:Pointer to the INetMgr Interface of interest
int INETMGR_SelectNetwork ( INetMgr *pINetMgr, int nNetwork, );
When an INetMgr instance is created, no network is selected. If an INetMgr method that requires a network is called before INETMGR_SelectNetwork(), AEE_NETWORK_DEFAULT will be implicitly selected, and the decision of which network to actually use is deferred to lower layers. Decision will be made upon connection creation, depending on the device and/or service provider.
Once a network has been selected, either explicitly via INETMGR_SelectNetwork(), or implicitly as described above, the network may not be changed. Hence, sockets opened by this INetMgr will be attached to the selected network. To use a different network, a new INetMgr instance is required.
Note that ISockPort sockets are not tied to INetMgr, and each ISockPort may use ISOCKPORT_SelectNetwork() independently to select a network.
INETMGR_SelectNetwork is not a formal member of INetMgr; instead it is a wrapper around INETMGR_SetOpt().