hunt.io.channel.Common

Undocumented in source.

Members

Aliases

AcceptHandler
alias AcceptHandler = void delegate(Socket socket)
Undocumented in source.
ConnectionHandler
alias ConnectionHandler = void delegate(bool isSucceeded)
Undocumented in source.
DataReceivedHandler
alias DataReceivedHandler = void delegate(ByteBuffer buffer)
Undocumented in source.
ErrorEventHandler
alias ErrorEventHandler = Action1!(IoError)
Undocumented in source.
UdpDataHandler
alias UdpDataHandler = void delegate(const(ubyte)[] data, Address addr)
Undocumented in source.
WritingBufferQueue
alias WritingBufferQueue = MagedNonBlockingQueue!ByteBuffer
Undocumented in source.
WritingBufferQueue
alias WritingBufferQueue = SimpleQueue!ByteBuffer
Undocumented in source.

Classes

BaseTypeObject
class BaseTypeObject(T)
Undocumented in source.
UdpDataObject
class UdpDataObject
Undocumented in source.

Enums

ChannelFlag
enum ChannelFlag
Undocumented in source.
ChannelType
enum ChannelType
Undocumented in source.

Functions

createAddress
Address createAddress(AddressFamily family, ushort port)

Interfaces

Channel
interface Channel

Properties

defaultPoolThreads
uint defaultPoolThreads [@property getter]
void defaultPoolThreads [@property getter]

These properties get and set the number of worker threads in the TaskPool instance returned by taskPool. The default value is totalCPUs - 1. Calling the setter after the first call to taskPool does not changes number of worker threads in the instance returned by taskPool.

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

Meta