NetworkStream

Undocumented in source.

Members

Functions

accept
NetworkStream accept()
Undocumented in source.
bind
void bind(string )
Undocumented in source.
bind
void bind(Address )
Undocumented in source.
close
void close()
Undocumented in source.
connect
NetworkStream connect(string host, ushort port, Duration timeout)

timeout is the socket write timeout.

listen
void listen(int )
Undocumented in source.
receive
ptrdiff_t receive(void[] buff)
Undocumented in source.
send
ptrdiff_t send(const(void)[] buff)
Undocumented in source.
so
TCPConnection so()
Undocumented in source.
so
Socket so()
Undocumented in source.

Properties

isConnected
bool isConnected [@property getter]
Undocumented in source.
isOpen
bool isOpen [@property getter]
Undocumented in source.
readTimeout
Duration readTimeout [@property setter]

Set timeout for receive calls. 0 means no timeout.

reuseAddr
bool reuseAddr [@property setter]
Undocumented in source.

Meta