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 * Receive channel data using the NDS1 protocol 00014 */ 00015 int 00016 nds1_recv_channels (daq_t *daq, daq_channel_t *channel, int num_channels, 00017 int *num_channels_received); 00018 00019 /* nds1_request_data(daq_t*, time_t, time_t) 00020 * 00021 * Get requested channel data for the specified interval. 00022 */ 00023 int 00024 nds1_request_data(daq_t* daq, time_t start, time_t dt); 00025 00026 /* nds1_receive_reconfigure(daq_t* daq, long block_len) 00027 * 00028 * Receive a reconfigure block. receive_reconfigure is received after the 00029 * block header has been read in. The block length does not include the 00030 * header length. 00031 */ 00032 int 00033 nds1_receive_reconfigure(daq_t* daq, long block_len); 00034 00035 /* nds1_recv_next(daq_t* daq) 00036 * 00037 * Receive the next data block in a chain. nds1_recv_next takes care 00038 * of inserted status blocks and other protocol entities. 00039 */ 00040 int 00041 nds1_recv_next(daq_t* daq); 00042 00043 #endif /* !defined(DAQC_NDS1_H) */
1.5.5