Class AsyncClientConnection

Asynchrous socket which uses separate thread for operation

class AsyncClientConnection
  : core.thread.osthread.Thread
  , AsyncSocket;

Constructors

NameDescription
this (cb)

Fields

NameTypeDescription
_callback AsyncSocketCallback
_errorSet std.socket.SocketSet
_queue BlockingQueue!(voiddelegate())
_readSet std.socket.SocketSet
_sock std.socket.Socket
_state SocketState
_writeSet std.socket.SocketSet

Properties

NameTypeDescription
state[get] SocketState

Methods

NameDescription
connect (host, port)
disconnect ()
send (data)
doDisconnect ()
threadProc ()

Aliases

NameDescription
~this