SocketStream

Undocumented in source.

Members

Functions

accept
SocketStream accept()
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(string to)

bind() just remember address. We will cal bind() at the time of connect as we can have several connection trials.

bind
void bind(Address addr)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
connect
SocketStream connect(string host, ushort port, Duration timeout)

Make connection to remote site. Bind, handle connection error, try several addresses, etc

listen
void listen(int n)
Undocumented in source. Be warned that the author may not have intended to support it.
open
void open(AddressFamily fa)
Undocumented in source. Be warned that the author may not have intended to support it.
receive
ptrdiff_t receive(void[] buff)
Undocumented in source. Be warned that the author may not have intended to support it.
send
ptrdiff_t send(const(void)[] buff)
Undocumented in source.

Properties

isConnected
bool isConnected [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isOpen
bool isOpen [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
readTimeout
Duration readTimeout [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
reuseAddr
bool reuseAddr [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
so
Socket so [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From NetworkStream

isConnected
bool isConnected [@property getter]
Undocumented in source.
isOpen
bool isOpen [@property getter]
Undocumented in source.
close
void close()
Undocumented in source.
connect
NetworkStream connect(string host, ushort port, Duration timeout)

timeout is the socket write timeout.

send
ptrdiff_t send(const(void)[] buff)
Undocumented in source.
receive
ptrdiff_t receive(void[] buff)
Undocumented in source.
accept
NetworkStream accept()
Undocumented in source.
reuseAddr
bool reuseAddr [@property setter]
Undocumented in source.
bind
void bind(string )
Undocumented in source.
bind
void bind(Address )
Undocumented in source.
listen
void listen(int )
Undocumented in source.
so
TCPConnection so()
Undocumented in source.
so
Socket so()
Undocumented in source.
readTimeout
Duration readTimeout [@property setter]

Set timeout for receive calls. 0 means no timeout.

Meta