1 #ifndef ISISDS_COMMAND_H
2 #define ISISDS_COMMAND_H
6 #define ISISDS_PORT 6789
12 #define INVALID_SOCKET -1
19 static const char*
isisds_type_name[] = {
"Unknown",
"Int32",
"Real32",
"Real64",
"Char" };
34 int isisds_report(
int status,
int code,
const char* format, ... );
int isisds_report(int status, int code, const char *format,...)
int isisds_send_command(SOCKET s, const char *command, const void *data, ISISDSDataType type, const int dims_array[], int ndims)
int isisds_recv_command(SOCKET s, char *command, int *len_command, void *data, ISISDSDataType *type, int dims_array[], int *ndims)
void(* isisds_error_report_t)(int status, int code, const char *messsage)
static const char * isisds_type_code[]
int isisds_send_close(SOCKET s)
int isisds_set_report_func(isisds_error_report_t report_func)
static const char * isisds_type_name[]
static int isisds_type_size[]
int isisds_recv_open(SOCKET s, ISISDSAccessMode *access_type)
SOCKET isisds_send_open(const char *host, ISISDSAccessMode access_type)
int isisds_recv_command_alloc(SOCKET s, char **command, void **data, ISISDSDataType *type, int dims_array[], int *ndims)