ButterflyHandler

Represents the message handler for the Bester server it is attached to (via a UNIX domain socket). This dispatches new connections from the server to that socket to client handlers that handle each connection from the Bester server wishing to get a handler response.

final
class ButterflyHandler {}

Constructors

this
this(string unixSocketPath)

Constructs a new Butterfly message handler bound to the given UNIX domain socket path, unixSocketPath and starts listening.

Members

Functions

dispatcher
void dispatcher()

Loops forever accepting new connections from the connection queue by dequeuing them, spawning a new ButterflyClient object and then starting its respective worker thread.

Meta