Bredbandskollen CLI
1.2
Asynchronous network task engine
|
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. | |
SocketReceiver * | channel (unsigned int n=0) const |
Return a channel. | |
size_t | noChannels () const |
Return number of channels. | |
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.