AbstractSocketChannel.getOption

Get a socket option.

  1. int getOption(SocketOptionLevel level, SocketOption option, void[] result)
    class AbstractSocketChannel
    pragma(inline) final @trusted
    int
    getOption
    (
    SocketOptionLevel level
    ,
    SocketOption option
    ,
    void[] result
    )
  2. int getOption(SocketOptionLevel level, SocketOption option, int32_t result)
  3. int getOption(SocketOptionLevel level, SocketOption option, Linger result)
  4. void getOption(SocketOptionLevel level, SocketOption option, Duration result)

Return Value

Type: int

The number of bytes written to result. returns the length, in bytes, of the actual result - very different from getsockopt()

Meta