TcpStream

Constructors

this
this(Selector loop, AddressFamily family, TcpStreamOption option)
Undocumented in source.
this
this(Selector loop, Socket socket, TcpStreamOption option)
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.
doConnect
void doConnect(Address addr)
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.
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.
options
void options(TcpStreamOption option)
Undocumented in source. Be warned that the author may not have intended to support it.
options
TcpStreamOption options()
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.
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(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.
_isClient
bool _isClient;
Undocumented in source.
closeHandler
SimpleEventHandler closeHandler;
Undocumented in source.

Meta