IFiberConnectionHandler.this

Constructor

Connects the socket, the asynchronous reader and writer, and the provided epoll select dispatcher.

  1. this(EpollSelectDispatcher epoll, size_t stack_size, bool buffered_writer, ISocket socket, FinalizeDg finalize_dg, ErrorDg error_dg)
    class IFiberConnectionHandler
    protected
    this
    (
    EpollSelectDispatcher epoll
    ,
    size_t stack_size
    ,,,
    scope FinalizeDg finalize_dg = null
    ,
    scope ErrorDg error_dg = null
    )
  2. this(EpollSelectDispatcher epoll, bool buffered_writer, ISocket socket, FinalizeDg finalize_dg, ErrorDg error_dg)
  3. this(EpollSelectDispatcher epoll, size_t stack_size, ISocket socket, FinalizeDg finalize_dg, ErrorDg error_dg)
  4. this(EpollSelectDispatcher epoll, ISocket socket, FinalizeDg finalize_dg, ErrorDg error_dg)

Parameters

epoll EpollSelectDispatcher

epoll select dispatcher which this connection should use for i/o

stack_size size_t

fiber stack size

buffered_writer bool

set to true to use the buffered writer

socket ISocket

the socket

finalize_dg FinalizeDg

user-specified finalizer, called when the connection is shut down

error_dg ErrorDg

user-specified error handler, called when a connection error occurs

Meta