- open
void open()
- close
void close()
- peek
bool peek()
Undocumented in source. Be warned that the author may not have intended to support it.
- read
size_t read(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- writeSome
size_t writeSome(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendTimeout
void sendTimeout(Duration value)
Undocumented in source. Be warned that the author may not have intended to support it.
- recvTimeout
void recvTimeout(Duration value)
Undocumented in source. Be warned that the author may not have intended to support it.
- maxRecvRetries
ushort maxRecvRetries()
void maxRecvRetries(ushort value)
- DEFAULT_MAX_RECV_RETRIES
enum DEFAULT_MAX_RECV_RETRIES;
Maximum number of retries for receiving from socket on read() in case of
EAGAIN/EINTR.
- setSocketOpts
void setSocketOpts()
Undocumented in source. Be warned that the author may not have intended to support it.
- setTimeout
void setTimeout(SocketOption type, Duration value)
Undocumented in source. Be warned that the author may not have intended to support it.
- maxRecvRetries_
ushort maxRecvRetries_;
Maximum number of recv() retries.
SSL encrypted socket implementation using OpenSSL.
Note: On Posix systems which do not have the BSD-specific SO_NOSIGPIPE flag, you might want to ignore the SIGPIPE signal, as OpenSSL might try to write to a closed socket if the peer disconnects abruptly: