TCPClient

Undocumented in source.

Constructors

this
this(EventLoop loop, bool isIpV6)
Undocumented in source.
this
this(EventLoop loop, AddressFamily family)
Undocumented in source.

Members

Functions

connect
bool connect(Address addr)
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.
onWrite
void onWrite()
Undocumented in source. Be warned that the author may not have intended to support it.
setConnectCallBack
void setConnectCallBack(ConnectCallBack cback)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isAlive
bool isAlive [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From TCPSocket

~this
~this()
Undocumented in source.
fd
int fd [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
start
bool start()
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.
isAlive
bool isAlive [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(const(ubyte)[] data, TCPWriteCallBack cback)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(TCPWriteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin TransportSocketOption
Undocumented in source.
setKeepAlive
void setKeepAlive(int time, int interval)
Undocumented in source. Be warned that the author may not have intended to support it.
setReadCallBack
void setReadCallBack(TCPReadCallBack cback)
Undocumented in source. Be warned that the author may not have intended to support it.
setCloseCallBack
void setCloseCallBack(CallBack cback)
Undocumented in source. Be warned that the author may not have intended to support it.
alive
bool alive [@property getter]
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.
onClose
void onClose()
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.
doRead
bool doRead()
Undocumented in source. Be warned that the author may not have intended to support it.
doWrite
bool doWrite()
Undocumented in source. Be warned that the author may not have intended to support it.
clearWriteQueue
void clearWriteQueue()
Undocumented in source. Be warned that the author may not have intended to support it.
_socket
Socket _socket;
Undocumented in source.
_writeQueue
WriteBufferQueue _writeQueue;
Undocumented in source.
_event
AsyncEvent _event;
Undocumented in source.
_readBuffer
ubyte[] _readBuffer;
Undocumented in source.
_unActive
CallBack _unActive;
Undocumented in source.
_readCallBack
TCPReadCallBack _readCallBack;
Undocumented in source.
_iocpread
IOCP_DATA _iocpread;
Undocumented in source.
_iocpwrite
IOCP_DATA _iocpwrite;
Undocumented in source.
_iocpBuffer
WSABUF _iocpBuffer;
Undocumented in source.
_iocpWBuf
WSABUF _iocpWBuf;
Undocumented in source.

Meta