00001 /* -*- mode: c; c-basic-offset: 4; -*- */ 00002 #ifndef DAQC_NDS2_H 00003 #define DAQC_NDS2_H 00004 00005 00006 /* 00007 * Connect to the DAQD server on the host identified by `ip' address. 00008 * Returns zero if OK or the error code if failed. 00009 */ 00010 int 00011 nds2_connect (daq_t *daq, const char* host, int port); 00012 00013 /* 00014 * Receive channel data using the NDS2 protocol 00015 */ 00016 int 00017 nds2_recv_channel_list(daq_t *daq, daq_channel_t *channel, int num_channels, 00018 int *num_channels_received, time_t gps, 00019 enum chantype type); 00020 00021 /* nds2_request_data(daq_t*, time_t, time_t) 00022 * 00023 * Get requested channel data for the specified interval. 00024 */ 00025 int nds2_request_data(daq_t* daq, time_t start, time_t end, time_t dt); 00026 00027 /* nds2_receive_reconfigure(daq_t* daq, long block_len) 00028 * 00029 * Receive a reconfigure block. receive_reconfigure is received after the 00030 * block header has been read in. The block length does not include the 00031 * header length. 00032 */ 00033 int 00034 nds2_receive_reconfigure(daq_t* daq, long block_len); 00035 00036 /* nds2_receive_next(daq_t* daq) 00037 * 00038 * Receive the next data block in a chain. nds2_receive_next takes care 00039 * of inserted status blocks and other protocol entities. 00040 */ 00041 int 00042 nds2_recv_next(daq_t* daq); 00043 00044 #endif
1.5.5