Developer

API Reference

ISOCKET_SetOpt()

Brew Release
Brew MP 1.0.2
See Also
ISOCKET_GetOpt() ISOCKET_Writeable() AEESockOpt
Description
Sets options for a socket.
Parameters
  • pISocket
    [in]:
    Pointer to the ISocket Interface whose name is to be returned.
  • nLevel
    [in]:
    Option level (see AEESockOpt)
  • nOptName
    [in]:
    Option name (see AEESockOpt)
  • pOptVal
    [out]:
    Pointer to the data type appropriate for the option (see AEESockOpt)
  • nOptSize
    [in]:
    Size of pOptVal
Interface
ISOCKET
Prototype
    int ISOCKET_SetOpt
    (
    ISocket * pISocket,
    int nLevel,
    int nOptName,
    const void *pOptVal,
    int nOptSize
    )
Return
AEE_NET_SUCCESS: The socket option has been successfully set.
AEE_NET_WOULDBLOCK: Operation in progress; use ISOCKET_Writeable() to be notified when to try again.
AEE_NET_ERROR: The operation failed. The specific error code can be retrieved by calling ISOCKET_GetLastError().
Side Effect
None.
Comment
This is not a formal member of ISocket, instead it is a wrapper around ISOCKET_IOCtl()
  • Follow