UnixSocketConnectionHandler

Constructors

this
this(FinalizeDg finalize_dg, EpollSelectDispatcher epoll, CommandHandlerType handler, cstring address_path)

Constructor.

Members

Functions

handle
void handle()

Request handler. Reads socket input data in an endless loop. Each chunk of input data is processed by parseLinesAndHandle().

Inherited Members

From IFiberConnectionHandler

use_buffered_writer_by_default
bool use_buffered_writer_by_default;

If true, a buffered writer is used by default.

SelectReader
alias SelectReader = .FiberSelectReader

Local aliases for SelectReader and SelectWriter.

SelectWriter
alias SelectWriter = .FiberSelectWriter
Undocumented in source.
reader
SelectReader reader;

SelectReader and SelectWriter used for asynchronous protocol i/o.

writer
SelectWriter writer;
Undocumented in source.
io_warning
IOWarning io_warning;

IOWarning exception instance used by the reader and writer.

io_error
bool io_error()

Called by IConnectionHandler.finalize(), in order to determine if an I/O error was reported for the connection conduit which made the connection automatically being closed. (See comment for IConnectionHandler.finalize() method.)

reset
void reset()

Resettable interface method, resets the reader.

Parameters

CommandHandlerType

The handler type that will process commands received by the socket. Must contain a `void handle ( cstring, cstring, void delegate ( cstring ) )` method.

Meta