- close
void close()
Immediately drop any connections and release socket resources.
Calling $(D_PSYMBOL shutdown) before $(D_PSYMBOL close) is recommended
for connection-oriented sockets. The $(D_PSYMBOL Socket) object is no
longer usable after $(D_PSYMBOL close).
- getOption
int getOption(SocketOptionLevel level, SocketOption option, void[] result)
int getOption(SocketOptionLevel level, SocketOption option, size_t result)
int getOption(SocketOptionLevel level, SocketOption option, Linger result)
int getOption(SocketOptionLevel level, SocketOption option, Duration result)
- listen
void listen(int backlog)
Listen for an incoming connection. $(D_PSYMBOL bind) must be called before you
can $(D_PSYMBOL listen).
- opCmp
int opCmp(size_t that)
- setOption
void setOption(SocketOptionLevel level, SocketOption option, void[] value)
void setOption(SocketOptionLevel level, SocketOption option, size_t value)
void setOption(SocketOptionLevel level, SocketOption option, Linger value)
void setOption(SocketOptionLevel level, SocketOption option, Duration value)
- shutdown
void shutdown(Shutdown how)
Disables sends and/or receives.
Class for creating a network communication endpoint using the Berkeley sockets interfaces of different types.