/mnt/qfs4/jzweizig/nds2_svn/trunk/client/src/client/daqc_listener.h

00001 /* -*- mode: c; c-basic-offset: 4; -*- */
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 /* defined(VXWORKS) */
00115 #endif /* defined(DAQ_LISTENER_H) */

Generated on Fri Jul 9 11:41:23 2010 for nds2-client by  doxygen 1.4.7