API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

INETWORK_SELECTNETWORKEX()

Brew Release
Brew MP 1.0.2
See Also
Data networks Error Codes INetwork
Description
This function selects a specific data network.
Params
me
[]:
the interface pointer.
nNetwork
[]:
data network type (AEE_NETWORK_*).
nFamily
[]:
address family (AEE_AF_*).
Interface
Prototype
  •    int INetwork_SelectNetworkEx(INetwork *me, int nNetwork, int16 nFamily);
    
Return
  • AEE_NET_SUCCESS: the data network was selected. AEE_NET_EINVAL: the specified network (or network-family combination) is not valid. AEE_NET_EOPNOTSUPP: the network has already been selected. AEE_EFAILED: method failed. Other error code : as appropriate.
Side Effect
  • None.
Comments
When an INetwork instance is created, no network is selected. If an INetwork method that requires a network is called before INetwork_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 INetwork_SelectNetworkEx(), or implicitly as described above, the network may not be changed. To use a different network, a new INetwork instance is required.