TcpStream

Constructors

this
this(Selector loop, AddressFamily family, int bufferSize)
Undocumented in source.
this
this(Selector loop, Socket socket, size_t bufferSize)
Undocumented in source.

Members

Functions

connect
void connect(string ip, 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.
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.
onClosed
TcpStream onClosed(SimpleEventHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onConnected
TcpStream onConnected(ConnectionHandler cback)
Undocumented in source. Be warned that the author may not have intended to support it.
onDataReceived
TcpStream onDataReceived(DataReceivedHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onDisconnected
TcpStream onDisconnected(SimpleEventHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onError
TcpStream onError(ErrorEventHandler handler)
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.
onWrite
void onWrite()
Undocumented in source. Be warned that the author may not have intended to support it.
reconnect
void reconnect(Address addr)
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(StreamWriteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(ubyte[] data, DataWrittenHandler handler)

safe for big data sending

Variables

_connectionHandler
ConnectionHandler _connectionHandler;
Undocumented in source.
_isClientSide
bool _isClientSide;
Undocumented in source.
closeHandler
SimpleEventHandler closeHandler;
Undocumented in source.

Meta