Socket.getOption - multiple declarations
Function Socket.getOption
Ditto.
int getOption
(
std .socket .SocketOptionLevel level,
std .socket .SocketOption option,
out ulong result
) @trusted const;
int getOption
(
std .socket .SocketOptionLevel level,
std .socket .SocketOption option,
out std .socket .Linger result
) @trusted const;
int getOption
(
std .socket .SocketOptionLevel level,
std .socket .SocketOption option,
out core .time .Duration result
) @trusted const;
Function Socket.getOption
Get a socket option.
int getOption
(
std .socket .SocketOptionLevel level,
std .socket .SocketOption option,
void[] result
) @trusted const;
Parameters
| Name | Description |
|---|---|
| level | Protocol level at that the option exists. |
| option | Option. |
| result | Buffer to save the result. |
Returns
The number of bytes written to result.
Throws
SocketException on error.