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

Developer

API Reference

IQOSBUNDLE_SELECTNETWORKEX()

Brew Release
Brew MP 1.0.2
See Also
IQoSBundle_Open() IQoSBundle_OpenEx() Data networks
Description
This function selects a specific data network to be associated with the QoS Bundle.
Each QoS Session is associated to a data network. IQoSBundle_SelectNetworkEx() will not change the QoS Sessions' data network.
Upon IQoSBundle_Open()/IQoSBundle_OpenEx(), each QoS Session within the bundle must either be associated to a data network which is identical to the bundle's selected network, or not specify a network at all. Otherwise the Open request will fail.
When an IQoSBundle instance is created, no network is selected. If IQoSBundle_Open()/IQoSBundle_OpenEx() is called before IQoSBundle_SelectNetworkEx(), AEE_NETWORK_DEFAULT will be implicitly selected.
The IQoSBundle instance is re-usable, therefor the client may call IQoSBundle_SelectNetworkEx() multiple times on the same bundle instance.
Params
po
[]:
the interface pointer
nNetwork
[]:
data network type (AEE_NETWORK_*)
nFamily
[]:
address family (AEE_AF_*)
Interface
Prototype
  •    int IQoSBundle_SelectNetworkEx(IQoSBundle* po, int nNetwork, int16 nFamily);
    
Return
  • AEE_SUCCESS: the data network was selected. AEE_NET_EINVAL: the network is not valid. AEE_EBADSTATE: the operation is currently not applicable. AEE_EFAILED: other failure.
    Other error codes are also possible.
Side Effect
  • None.
Comments
None.