nds2-client - ClientDeveloper  0.16.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. More...
 
enum chantype cvt_group_chantype (int group_num)
 Convert group code to channel type. More...
 
long dca_strtol (const char *str)
 
int _daq_wait_data (nds_socket_type fd, int wt)
 Wait for data to arrive. More...
 
int read_bytes (nds_socket_type fd, char *cptr, size_t numb)
 Read a `numb' bytes. More...
 
long read_server_response_wait (nds_socket_type fd, int wt)
 Get a response integer (internal function). More...
 
long read_server_response (nds_socket_type fd)
 Get a response code (internal function). More...
 
int read_float (nds_socket_type fd, float *data)
 Read a float data word. More...
 
int read_uint4 (nds_socket_type fd, uint4_type *data)
 Read a 4-byte integer data word. More...
 
int _daq_read_string (nds_socket_type fd, size_t maxlen, char *buf)
 read an nds2 string. More...
 
int _daq_read_cstring (nds_socket_type fd, size_t maxlen, char *buf)
 read an nds string. More...
 
int null_term (char *p, int len)
 Add a NULL after the last non-blank in a string. More...
 
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. More...
 
int _daq_cvt_string (unsigned long in, char *out)
 Convert an integer to a string. More...
 
int _daq_cvt_ll_string (unsigned long long in, char *out)
 Convert an integer to a string. More...
 
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. More...
 
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. More...
 
void pstrerror_r (char *StrErrBuf, size_t StrErrBufLen)
 

Macro Definition Documentation

#define HOST_BUF_LENGTH   2048
#define response_length   4

Function Documentation

void pstrerror_r ( char *  StrErrBuf,
size_t  StrErrBufLen 
)