Socket.setOption

Set a socket option.

  1. void setOption(SocketOptionLevel level, SocketOption option, void[] value)
    class Socket
    protected const @trusted
    void
    setOption
    (
    SocketOptionLevel level
    ,
    SocketOption option
    ,
    void[] value
    )
  2. 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 void[]

Option value.

Throws

$(D_PSYMBOL SocketException) on error.

Meta