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

00001 /* -*- mode: c; c-basic-offset: 4; -*- */
00002 #ifndef DAQC_NDS2_H
00003 #define DAQC_NDS2_H
00004 
00005 /*
00006  *  Connect to the NDS2 server on the host identified by `ip' address.
00007  *  Returns zero if OK or the error code if failed.
00008  */
00009 int
00010 nds2_connect (daq_t *daq, const char* host, int port);
00011 
00012 /*
00013  *  Receive channel data using the NDS2 protocol
00014  */
00015 int 
00016 nds2_recv_channel_list(daq_t *daq, daq_channel_t *channel, int num_channels, 
00017                        int *num_channels_received, time_t gps, 
00018                        enum chantype type);
00019 
00020 /*
00021  *  Receive source list using the NDS2 protocol
00022  */
00023 int 
00024 nds2_recv_source_list(daq_t *daq, char* list, size_t max_len, 
00025                       time_t gps, long* str_len);
00026 
00027 /*
00028  *  Disconnect from the NDS2 server. Send a quit command, delete the sasl
00029  *  context and close the socket.
00030  *  Returns zero if OK or the error code if failed.
00031  */
00032 int
00033 nds2_disconnect (daq_t *daq);
00034 
00035 /*  nds2_request_data(daq_t*, time_t, time_t)
00036  *
00037  *  Get requested channel data for the specified interval.
00038  */
00039 int nds2_request_data(daq_t* daq, time_t start, time_t end, time_t dt);
00040 
00041 /*  nds2_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 nds2_receive_reconfigure(daq_t* daq, size_t block_len);
00049 
00050 /*
00051  *  Initialize the nds2 client
00052  *  Returns zero if OK or the error code if failed.
00053  */
00054 int
00055 nds2_startup(void);
00056 
00057 #endif

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