Developer

API Reference

INetUtils_GetDefaultNetwork()

Brew Release
Brew MP 1.0.2
See Also
Data networks
Description
This function returns the default data network.
Parameters
  • me
    []:
    the interface pointer
  • sFamily
    []:
    the requested address family to be supported by the default network
  • pnNetwork
    []:
    filled with the default data network (AEE_NETWORK_*)
Interface
Prototype
   int INetUtils_GetDefaultNetwork(INetUtils *me, int16 sFamily, int* pnNetwork)
Return
AEE_NET_SUCCESS: the default data network was filled in AEE_EFAILED: operation failed.
Other error codes are also possible.
Side Effect
None.
Comment
Most applications will not need to get the default network.
The default network may be the CDMA Service Network, the configured default UMTS Packet Data Profile or other network depending on the device and/or service provider.
The specification of address family is required since the system may support two default networks, one for IPv4 and another one for IPv6. This is especially important in UMTS where the default network is associated with a specific Packet Data Profile. In this case the system is configured with a default profile for IPv4 and another default profile for IPv6.
  • Follow