- 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_*)
int INetUtils_GetDefaultNetwork(INetUtils *me, int16 sFamily, int* pnNetwork)
Other error codes are also possible.
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.