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

Developer

API Reference

ISOCKPORT_SETOPT()

Brew Release
Brew MP 1.0.2
See Also
None.
Description
Sets options for a socket.
Params
po
[]:
pointer to the ISockPort interface
nLevel
[]:
option level (see AEESockOpt)
nOptName
[]:
option name (see AEESockOpt)
pOptVal
[]:
pointer to the data type appropriate for the option (see AEESockOpt)
nOptSize
[]:
size of pOptVal
Interface
Prototype
  •    int ISockPort_SetOpt(ISockPort* po, int nLevel, int nOptName, const void *pOptVal, int nOptSize)
    
Return
  • AEE_SUCCESS: The socket option has been successfully set.
    IPORT_WAIT: Operation in progress; use ISockPort_Writeable() to be notified when to try again.
    AEE_NET_EFAULT : invalid parameter has been specified AEE_NET_EINVAL : invalid socket AEE_NET_EBADF : socket is not open AEE_NET_ENOPROTOOPT: the option is unknown at the level indicated AEE_NET_EOPNOTSUPP : not supported on this socket type AEE_NET_ENETDOWN : network is not available (handset has lost network coverage) AEE_NET_EMFILE : not enough resources to complete this operation (too many sockets are in use).
    Other error codes are also possible.
Side Effect
  • None.
Comments
None.