nds2-client - Developer 0.16.7
Loading...
Searching...
No Matches
Macros | Functions
daqc_internal.c File Reference
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
#include "channel.h"
#include "daqc.h"
#include "daqc_private.h"
#include "daqc_response.h"
#include "daqc_internal.h"
#include "daqc_net.h"
#include "nds_logging.h"
#include "nds_os.h"
#include <sys/types.h>
Include dependency graph for daqc_internal.c:

Macros

#define response_length   4
 
#define HOST_BUF_LENGTH   2048
 

Functions

size_t swap_data (size_t gran, size_t nBytes, char *data)
 Swap data bytes.
 
enum chantype cvt_group_chantype (int group_num)
 Convert group code to channel type.
 
long dca_strtol (const char *str)
 
int _daq_wait_data (nds_socket_type fd, int wt)
 Wait for data to arrive.
 
int read_bytes (nds_socket_type fd, char *cptr, size_t numb)
 Read a ‘numb’ bytes.
 
long read_server_response_wait (nds_socket_type fd, int wt)
 Get a response integer (internal function).
 
long read_server_response (nds_socket_type fd)
 Get a response code (internal function).
 
int read_float (nds_socket_type fd, float *data)
 Read a float data word.
 
int read_uint4 (nds_socket_type fd, uint4_type *data)
 Read a 4-byte integer data word.
 
int _daq_read_string (nds_socket_type fd, size_t maxlen, char *buf)
 read an nds2 string.
 
int _daq_read_cstring (nds_socket_type fd, size_t maxlen, char *buf)
 read an nds string.
 
int null_term (char *p, int len)
 Add a NULL after the last non-blank in a string.
 
size_t _daq_get_string (const char **p, const char *end, char *out, size_t lmax)
 Copy a blank or null terminated string to an output buffer.
 
int _daq_cvt_string (unsigned long in, char *out)
 Convert an integer to a string.
 
int _daq_cvt_ll_string (unsigned long long in, char *out)
 Convert an integer to a string.
 
uint4_type daq_get_block_secs (daq_t *daq)
 
uint4_type daq_get_block_gps (daq_t *daq)
 
uint4_type daq_get_block_gpsn (daq_t *daq)
 
uint4_type daq_get_block_seq_num (daq_t *daq)
 
char * daq_get_block_data (daq_t *daq)
 
int daq_set_server (daq_t *daq, const char *host, int port)
 Set the server address.
 
int daq_recv_channel_groups (daq_t *daq, daq_channel_group_t *group, int num_groups, int *num_channel_groups_received)
 Receive a list of channel groups.
 
void pstrerror_r (char *StrErrBuf, size_t StrErrBufLen)
 

Macro Definition Documentation

◆ HOST_BUF_LENGTH

#define HOST_BUF_LENGTH   2048

◆ response_length

#define response_length   4

Function Documentation

◆ pstrerror_r()

void pstrerror_r ( char *  StrErrBuf,
size_t  StrErrBufLen 
)