Bredbandskollen CLI  1.2
Asynchronous network task engine
Public Member Functions | List of all members
WorkerProcess Class Reference

Used by LoadBalancer to manage child processes. More...

#include <workerprocess.h>

Public Member Functions

 WorkerProcess (pid_t pid, std::vector< SocketReceiver * > &receivers)
 Create worker to run in newly forked process pid.
 
pid_t pid () const
 Return the PID of the worker process.
 
SocketReceiverchannel (unsigned int n=0) const
 Return a channel.
 
size_t noChannels () const
 Return number of channels.
 

Detailed Description

Used by LoadBalancer to manage child processes.

One or more SocketReceiver objects may be used to pass sockets (and/or messages) between master and child processes.

Each SocketReceiver will be called a channel, and they will be referenced using integers starting with 0.

The point of using channels is to pass different types of connections (e.g. with or without SSL encryption) on different channels.


The documentation for this class was generated from the following file: