AbstractStream

TCP Client

Constructors

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

Members

Functions

beginRead
void beginRead()
Undocumented in source. Be warned that the author may not have intended to support it.
cancelWrite
void cancelWrite()
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.
doRead
void doRead()
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.
onWrite
void onWrite()
Undocumented in source. Be warned that the author may not have intended to support it.
onWriteDone
void onWriteDone(size_t nBytes)

* Called by selector after data sent * Note: It's only for IOCP selector:

tryWrite
size_t tryWrite(ubyte[] data)
tryWrite
void tryWrite()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin CheckIocpError
Undocumented in source.

Variables

_isConnected
bool _isConnected;
Undocumented in source.
_writeQueue
WriteBufferQueue _writeQueue;
Undocumented in source.
dataReceivedHandler
DataReceivedHandler dataReceivedHandler;
Undocumented in source.
disconnectionHandler
SimpleEventHandler disconnectionHandler;
Undocumented in source.
isWriteCancelling
bool isWriteCancelling;
Undocumented in source.
sentHandler
DataWrittenHandler sentHandler;
Undocumented in source.

Mixed In Members

From mixin CheckIocpError

checkErro
void checkErro(int ret, int erro)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From AbstractSocketChannel

_family
AddressFamily _family;
Undocumented in source.
socket
Socket socket [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
socket
Socket socket [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin ChannelSocketOption
Undocumented in source.
setRead
void setRead(size_t bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
readLen
size_t readLen;
Undocumented in source.
start
void start()
Undocumented in source.
onWriteDone
void onWriteDone()
Undocumented in source. Be warned that the author may not have intended to support it.
_socket
Socket _socket;
Undocumented in source.

Meta