fdhwlib  2.0.25
EventLoopClient Class Reference

#include <eventloopclient.h>

Inheritance diagram for EventLoopClient:
EventLoop SimpleServer BaseServer

List of all members.

Public Member Functions

Protected Attributes


Detailed Description

Implementation of a control interface for the eventloop.

Definition at line 42 of file eventloopclient.h.


Constructor & Destructor Documentation

EventLoopClient::EventLoopClient ( const char *  server,
unsigned short  port 
)

Create server process.

EventLoopClient::~EventLoopClient ( )

Member Function Documentation

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.


Member Data Documentation

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]

Debug level.

Reimplemented from BaseServer.

Definition at line 93 of file eventloopclient.h.


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