This function deprecates ISockPort_SelectNetwork().
- me:the interface pointer
- nNetwork:data network type (AEE_NETWORK_*)
- nFamily:network address family (AEE_AF_*). If ISockPort_OpenEx() was already called for this socket, nFamily should match the address family that was requested for the socket.
int ISockPort_SelectNetworkEx(ISockPort *me, int nNetwork, int16 nFamily)
Other error codes are also possible.
When an ISockPort instance is created, no network is selected. If an ISockPort method that requires a network is called before ISockPort_SelectNetworkEx(), AEE_NETWORK_DEFAULT and the socket's family (or AEE_AF_INET if it's unspec) 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 ISockPort_SelectNetworkEx(), or implicitly as described above, the network may not be changed. To use a different network, a new ISockPort instance is required.