- me:the interface pointer
- nNetwork:data network type (AEE_NETWORK_*)
- nFamily:address family (AEE_AF_*)
int IDNSConfig2_SelectNetworkEx(IDNSConfig2* me, int nNetwork, uint16 nFamily)
Other error codes are also possible.
When an IDNS instance is created, no network is selected. If an IDNS method that requires a network is called before IDNSConfig2_SelectNetworkEx(), AEE_NETWORK_DEFAULT and AEE_AF_INET 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 IDNSConfig2_SelectNetworkEx(), or implicitly as described above, the network may not be changed. To use a different network, a new IDNS instance is required.