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

00001 /* -*- mode: c; c-basic-offset: 4; -*- */
00002 #ifndef DAQC_NDS1_H
00003 #define DAQC_NDS1_H
00004 
00005 /*
00006  *  Connect to the DAQD server on the host identified by `ip' address.
00007  *  Returns zero if OK or the error code if failed.
00008  */
00009 int
00010 nds1_connect (daq_t *daq, const char* host, int port);
00011 
00012 /*
00013  *  Disconnect from the DAQD server. Send a quit command and close the
00014  *  socket.
00015  *  Returns zero if OK or the error code if failed.
00016  */
00017 int
00018 nds1_disconnect (daq_t *daq);
00019 
00020 /*
00021  *  Initialize the nds1 client
00022  *  Returns zero if OK or the error code if failed.
00023  */
00024 int
00025 nds1_initalize(void);
00026 
00027 /*
00028  *  Receive channel data using the NDS1 protocol
00029  */
00030 int
00031 nds1_recv_channels (daq_t *daq, daq_channel_t *channel, int num_channels, 
00032                     int *num_channels_received);
00033 
00034 /*  nds1_request_data(daq_t*, time_t, time_t)
00035  *
00036  *  Get requested channel data for the specified interval.
00037  */
00038 int
00039 nds1_request_data(daq_t* daq, time_t start, time_t dt);
00040 
00041 /*  nds1_receive_reconfigure(daq_t* daq, long block_len)
00042  *
00043  *  Receive a reconfigure block. receive_reconfigure is received after the 
00044  *  block header has been read in. The block length does not include the
00045  *  header length.
00046  */
00047 int 
00048 nds1_receive_reconfigure(daq_t* daq, size_t block_len);
00049 
00050 /*
00051  *  Initialize the nds1 client
00052  *  Returns zero if OK or the error code if failed.
00053  */
00054 int
00055 nds1_startup(void);
00056 
00057 #endif  /* !defined(DAQC_NDS1_H) */

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