Developer

API Reference

IDNSConfig_SelectNetwork()

Brew Release
Brew MP 1.0.2
See Also
Data networks
Description
Selects a specific data network.
Parameters
  • pIDNSConfig
    []:
    [in] pointer to the IDNSConfig Interface of interest
  • nNetwork
    []:
    [in] data network (AEE_NETWORK_*)
Interface
Prototype
    int IDNSConfig_SelectNetwork
    (
      IDNSConfig *pIDNSConfig,
      int nNetwork
    );
Return
AEE_SUCCESS: if the data network was selected. AEE_NET_EINVAL: if the network is not valid. AEE_NET_EOPNOTSUPP: if the network has already been selected. AEE_EFAILED: otherwise
Side Effect
None.
Comment
Most applications will not need to explicitly select the network.
When an IDNS instance is created, no network is selected. If an IDNS method that requires a network is called before IDNSConfig_SelectNetwork(), AEE_NETWORK_DEFAULT will be implicitly selected.
AEE_NETWORK_DEFAULT corresponds to either CDMA Service Network -or- the configured default UMTS Packet Data Profile, depending on
the device and/or service provider.
Once a network has been selected, either explicitly via IDNSConfig_SelectNetwork(), or implicitly as described above, the network may not be changed. To use a different network, a new IDNS instance is required.
  • Follow