TcpStream

Constructors

this
this(Selector loop, TcpStreamOptions option, AddressFamily family)
Undocumented in source.
this
this(Selector loop, Socket socket, TcpStreamOptions option)
Undocumented in source.

Members

Functions

CheckKeepAlive
void CheckKeepAlive()
Undocumented in source. Be warned that the author may not have intended to support it.
Closed
TcpStream Closed(SimpleEventHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
Connect
void Connect(string hostname, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
Connect
void Connect(Address addr)
Undocumented in source. Be warned that the author may not have intended to support it.
Connected
TcpStream Connected(ConnectionHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
Disconnected
TcpStream Disconnected(SimpleEventHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
DoConnect
bool DoConnect(Address addr)
Undocumented in source. Be warned that the author may not have intended to support it.
Error
TcpStream Error(ErrorEventHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
IsBusy
bool IsBusy()
Undocumented in source. Be warned that the author may not have intended to support it.
IsClient
bool IsClient()
Undocumented in source. Be warned that the author may not have intended to support it.
IsConnected
bool IsConnected()
Undocumented in source. Be warned that the author may not have intended to support it.
OnClose
void OnClose()
Undocumented in source. Be warned that the author may not have intended to support it.
OnDisconnected
void OnDisconnected()
Undocumented in source. Be warned that the author may not have intended to support it.
OnRead
void OnRead()
Undocumented in source. Be warned that the author may not have intended to support it.
ReConnect
void ReConnect()
Undocumented in source. Be warned that the author may not have intended to support it.
Received
TcpStream Received(DataReceivedHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
SetKeepalive
void SetKeepalive()
Undocumented in source. Be warned that the author may not have intended to support it.
ShutdownInput
void ShutdownInput()
Undocumented in source. Be warned that the author may not have intended to support it.
ShutdownOutput
void ShutdownOutput()
Undocumented in source. Be warned that the author may not have intended to support it.
Start
void Start()
Undocumented in source. Be warned that the author may not have intended to support it.
Write
void Write(NbuffChunk bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
Write
void Write(const(ubyte)[] data)
Writed
TcpStream Writed(DataSendedHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
options
void options(TcpStreamOptions option)
Undocumented in source. Be warned that the author may not have intended to support it.
options
TcpStreamOptions options()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_connectionHandler
ConnectionHandler _connectionHandler;
Undocumented in source.
_isClient
bool _isClient;
Undocumented in source.
_isConnected
bool _isConnected;
Undocumented in source.
_tcpOption
TcpStreamOptions _tcpOption;
Undocumented in source.
closeHandler
SimpleEventHandler closeHandler;
Undocumented in source.
retryCount
int retryCount;
Undocumented in source.

Meta