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

Developer

API Reference

INETWORK_SETOPT()

Brew Release
Brew MP 1.0.2
See Also
Error Codes INetwork
Description
This function provides the ability to configure certain network options. It is similar in paradigm to ISockPort_IOCtl(), but deals more with network-level items to be configured.
Params
me
[]:
the interface pointer
nOptName
[]:
option to set
pOptVal
[]:
option-specific data to set. The pOptVal type is char *, and the format of the input string must
nOptSize
[]:
size of the option-specific data pointed to by pOptVal
Interface
Prototype
  •    int INetwork_SetOpt(INetwork *me, int nOptName, void *pOptVal, int nOptSize)
    
Return
  • AEE_SUCCESS: option was set successfully. AEE_EPRIVLEVEL: if access to the option is prohibited by applet privilege AEE_EUNSUPPORTED: if nOptName is unknown AEE_EBADPARM: if nOptSize is set to a size that does not correspond to the correct option data Other error code: Depending on the option to be set.
Side Effect
  • None.
Comments
Currently supported option ids are: RLP options: these options are highly device dependent, and as such may not be able to be configured, available, or well-behaved. They are protected by the system privilege level.
  • INETWORK_OPT_DEF_RLP3
  • Default RLP settings, pOptVal must be an AEERLP3Cfg
  • INETWORK_OPT_CUR_RLP3
  • Current RLP settings, pOptVal must be an AEERLP3Cfg
  • INETWORK_OPT_PPP_AUTH
  • Set the system's configured PPP authentication credentials (protected by PL_SYSTEM).
DDTM option: this option is highly device dependent, and as such may not be able to be configured, available, or well-behaved. It is protected by the system privilege level. INETWORK_OPT_DDTM_PREF Set the data dedicated transmission mode preference, pOptVal is a pointer to boolean.