00001
00002 #ifndef DAQ_LISTENER_H
00003 #define DAQ_LISTENER_H
00004
00005 #include "daqc.h"
00006
00007 #ifndef VXWORKS
00008
00054 typedef struct {
00055
00057 daq_t* daq;
00058
00060 struct sockaddr_in listener_addr;
00061
00063 void * (*interpreter)(void *);
00064
00067 int shutting_down;
00068
00070 pthread_t listener_tid;
00071
00073 pthread_t interpreter_tid;
00074
00077 pthread_mutex_t lock;
00078
00079 } daq_listen_t;
00080
00096 daq_listen_t*
00097 daq_initialize (daq_listen_t* lstn, daq_t* daq, int* tcp_port,
00098 void * (*start_func)(void *));
00099
00111 int
00112 daq_shutdown (daq_listen_t* lstn);
00113
00120 #endif
00121 #endif