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

Developer

API Reference

IADDRINFOCACHE_SELECTNETWORK()

Brew Release
Brew MP 1.0.2
See Also
Data Networks
Description
This function selects a specific data network.
Params
me
[]:
the interface pointer
nNetwork
[in]:
data network type (AEE_NETWORK_*)
Interface
Prototype
  •    int IAddrInfoCache_SelectNetwork(IAddrInfoCache *me, int nNetwork)
    
Return
  • AEE_SUCCESS: the data network was selected AEE_EBADSTATE: the network is not valid AEE_NET_EOPNOTSUPP: the network has already been selected. AEE_EFAILED: other error.
    Other error codes are also possible.
Side Effect
  • None.
Comments
When an IAddrInfoCache instance is created, no network is selected. If an IAddrInfoCache method that requires a network (i.e. ClearCache) is called before IAddrInfoCache_SelectNetwork(), AEE_NETWORK_DEFAULT will be implicitly selected, and the decision of which network to actually use is deferred to lower layers. Once a network has been selected, either explicitly via IAddrInfoCache_SelectNetwork(), or implicitly as described above, the network may not be changed. To use a different network, a new IAddrInfoCache instance is required.