Socket.setOption

Set a socket option.

  1. void setOption(SocketOptionLevel level, SocketOption option, void[] value)
  2. void setOption(SocketOptionLevel level, SocketOption option, size_t value)
    class Socket
    const @trusted @nogc
    void
    setOption
    (
    SocketOptionLevel level
    ,
    SocketOption option
    ,
    size_t value
    )
  3. void setOption(SocketOptionLevel level, SocketOption option, Linger value)
  4. void setOption(SocketOptionLevel level, SocketOption option, Duration value)

Parameters

level SocketOptionLevel

Protocol level at that the option exists.

option SocketOption

Option.

value size_t

Option value.

Throws

$(D_PSYMBOL SocketException) on error.

Meta