21 #include "apc464_dioserver.h"
25 std::string global_app_name;
27 int main(
int argc,
char **argv)
37 init_apc464_info(&apc464);
45 std::string confdir = Utils::getConffile(
"dioserver");
64 Logger::get()->log( Logger::LOG_LEV_FATAL,
"%s:%d: %s", __FILE__, __LINE__,
"exception caught in dioserver");
Declarations for the dioserver.
Class to manage access to a digital input/output device.
int(* diocard_init)(void *)
Initialize the card.
int(* diocard_read)(void *card, int ch)
Read a bit from the channel.
int(* diocard_write)(void *card, int ch, int bit)
Write a bit to a channel.
int TimeToDie
Global set by SIGTERM.
void * diocard_info
The generic DIO interface. This pointer is passed unaltered to the diocard_* functions.
virtual int Exec()
Installs the term and XXXX signal handlers, and calls Run().