00001
00002 #ifndef DAQ_LISTENER_H
00003 #define DAQ_LISTENER_H
00004
00005 #include "daqc.h"
00006
00007 #ifndef VXWORKS
00008
00051 typedef struct {
00052
00054 daq_t* daq;
00055
00057 struct sockaddr_in listener_addr;
00058
00060 void * (*interpreter)(void *);
00061
00064 int shutting_down;
00065
00067 pthread_t listener_tid;
00068
00070 pthread_t interpreter_tid;
00071
00074 pthread_mutex_t lock;
00075
00076 } daq_listen_t;
00077
00093 daq_listen_t*
00094 daq_initialize (daq_listen_t* lstn, daq_t* daq, int* tcp_port,
00095 void * (*start_func)(void *));
00096
00108 int
00109 daq_shutdown (daq_listen_t* lstn);
00110
00114 #endif
00115 #endif