nds2-client - ClientDeveloper
0.16.8
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
#include <stdint.h>
#include "daqc.h"
#include "daqc_internal.h"
#include "daqc_response.h"
#include "channel.h"
#include "trench.h"
#include "nds_logging.h"
Macros | |
#define | MAX_GROUP_LIST 4096 |
#define | MAX_EPOCH_LIST 65536UL |
#define | MAX_CHANNEL_LIST 209715200 |
#define | MAX_MESSAGE_LEN 128UL |
#define | NEW_VECT(type, dim) ( (type*)malloc( dim * sizeof( type ) ) ) |
#define | NDS_EXIT_STATUS_FAIL 99 /* A general failure has occurred */ |
#define | NDSSERVER_ENV "NDSSERVER" |
#define | DEFAULT_DELTA 2 |
Enumerations | |
enum | pgm_mode { list_group, chan_list, chan_count, chan_crc, chan_data, server_protocol, server_version, epoch_list, cmd_exec } |
Functions | |
void | set_node_and_port_from_env (const char **node_id, short *port_id) |
set_node_and_port_from_env attempts to extract port & host information from the environment More... | |
void | dump_data (daq_t *daq, size_t spl, const char *fmt) |
void | dump_status (daq_t *daq) |
int | main (int argc, const char *argv[]) |
Variables | |
static int | optimize_channel_fetch = 1 |
#define DEFAULT_DELTA 2 |
#define MAX_CHANNEL_LIST 209715200 |
#define MAX_EPOCH_LIST 65536UL |
#define MAX_GROUP_LIST 4096 |
#define MAX_MESSAGE_LEN 128UL |
#define NDS_EXIT_STATUS_FAIL 99 /* A general failure has occurred */ |
#define NDSSERVER_ENV "NDSSERVER" |
#define NEW_VECT | ( | type, | |
dim | |||
) | ( (type*)malloc( dim * sizeof( type ) ) ) |
enum pgm_mode |
void dump_data | ( | daq_t * | daq, |
size_t | spl, | ||
const char * | fmt | ||
) |
void dump_status | ( | daq_t * | daq | ) |
int main | ( | int | argc, |
const char * | argv[] | ||
) |
void set_node_and_port_from_env | ( | const char ** | node_id, |
short * | port_id | ||
) |
set_node_and_port_from_env attempts to extract port & host information from the environment
node_id | pointer to the node (host) pointer |
port_id | pointer to put a port number in |
|
static |