fdhwlib
2.0.25
|
#include <eventloopclient.h>
Implementation of a control interface for the eventloop.
Definition at line 42 of file eventloopclient.h.
EventLoopClient::EventLoopClient | ( | const char * | server, |
unsigned short | port | ||
) |
Create server process.
EventLoopClient::~EventLoopClient | ( | ) |
void EventLoopClient::connect | ( | ) |
Connect to server.
void EventLoopClient::disconnect | ( | ) |
Disconnect from server.
void EventLoopClient::help | ( | FILE * | fout | ) | [virtual] |
Help.
Reimplemented from EventLoop.
void EventLoopClient::keyboard_cmds | ( | FILE * | fout, |
char * | line | ||
) | [virtual] |
Reimplement this command.
Reimplemented from EventLoop.
int EventLoopClient::read_from_client | ( | int | filedes | ) | [virtual] |
Handle message output form the server.
Reimplemented from SimpleServer.
int EventLoopClient::read_from_keyboard | ( | ) | [virtual] |
Keyboard interface for interactive control (only for compatibility reasons.
Reimplemented from EventLoop.
void EventLoopClient::run | ( | FILE * | fout, |
int | n = 0 |
||
) |
Run eventloop using the socket server as event handler.
The server will call periodically handle_timeout where the polling of the electronic is done.
Reimplemented from EventLoop.
void EventLoopClient::sendDatabase | ( | ) |
Send database parameter to the server loop.
int EventLoopClient::startRun | ( | int | n = 0 | ) |
Start run with to collect n events.
int EventLoopClient::stopRun | ( | ) | [virtual] |
Stop run.
Reimplemented from EventLoop.
SimpleSocket* EventLoopClient::daq [protected] |
Socket to connect to the readout server.
Definition at line 86 of file eventloopclient.h.
unsigned short EventLoopClient::daqPort [protected] |
Definition at line 90 of file eventloopclient.h.
std::string EventLoopClient::daqServer [protected] |
Definition at line 88 of file eventloopclient.h.
int EventLoopClient::debug [protected] |