ICP  1
Macros | Typedefs | Enumerations | Functions | Variables
isisds_command.h File Reference

Go to the source code of this file.

Macros

#define ISISDS_PORT   6789
 
#define SOCKET   int
 
#define INVALID_SOCKET   -1
 

Typedefs

typedef void(* isisds_error_report_t )(int status, int code, const char *messsage)
 

Enumerations

enum  ISISDSAccessMode { ISISDSDAEAccess = 0, ISISDSCRPTAccess = 1 }
 
enum  ISISDSDataType {
  ISISDSUnknown = 0, ISISDSInt32 = 1, ISISDSReal32 = 2, ISISDSReal64 = 3,
  ISISDSChar = 4
}
 

Functions

SOCKET isisds_send_open (const char *host, ISISDSAccessMode access_type)
 
int isisds_recv_open (SOCKET s, ISISDSAccessMode *access_type)
 
int isisds_send_command (SOCKET s, const char *command, const void *data, ISISDSDataType type, const int dims_array[], int ndims)
 
int isisds_recv_command_alloc (SOCKET s, char **command, void **data, ISISDSDataType *type, 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)
 
int isisds_send_close (SOCKET s)
 
int isisds_set_report_func (isisds_error_report_t report_func)
 
int isisds_report (int status, int code, const char *format,...)
 

Variables

static int isisds_type_size [] = { 0, 4, 4, 8, 1 }
 
static const char * isisds_type_name [] = { "Unknown", "Int32", "Real32", "Real64", "Char" }
 
static const char * isisds_type_code [] = { "U00", "I32", "R32", "R64", "C08" }
 

Macro Definition Documentation

#define INVALID_SOCKET   -1

Definition at line 12 of file isisds_command.h.

Referenced by isisds_send_open(), and ISISDS::run().

#define ISISDS_PORT   6789

Definition at line 6 of file isisds_command.h.

Referenced by isisds_send_open(), and ISISDS::run().

#define SOCKET   int

Definition at line 11 of file isisds_command.h.

Referenced by isisds_send_open(), Qxtrm_driver::loadConfigData(), and ISISDS::run().

Typedef Documentation

typedef void(* isisds_error_report_t)(int status, int code, const char *messsage)

Definition at line 4 of file isisds_command.h.

Enumeration Type Documentation

Enumerator
ISISDSDAEAccess 
ISISDSCRPTAccess 

Definition at line 15 of file isisds_command.h.

Enumerator
ISISDSUnknown 
ISISDSInt32 
ISISDSReal32 
ISISDSReal64 
ISISDSChar 

Definition at line 17 of file isisds_command.h.

Function Documentation

int isisds_recv_command ( SOCKET  s,
char *  command,
int *  len_command,
void *  data,
ISISDSDataType type,
int  dims_array[],
int *  ndims 
)

Definition at line 292 of file isisds_command.c.

References isisds_recv_command_helper().

int isisds_recv_command_alloc ( SOCKET  s,
char **  command,
void **  data,
ISISDSDataType type,
int  dims_array[],
int *  ndims 
)

Definition at line 322 of file isisds_command.c.

References isisds_recv_command_helper(), and ISISDSUnknown.

Referenced by isisds_send_open(), and ISISDSRequest::run().

int isisds_recv_open ( SOCKET  s,
ISISDSAccessMode access_type 
)
int isisds_report ( int  status,
int  code,
const char *  format,
  ... 
)

Definition at line 356 of file isisds_command.c.

Referenced by isisds_recv_command_helper().

int isisds_send_close ( SOCKET  s)

Definition at line 340 of file isisds_command.c.

References closesocket.

int isisds_send_command ( SOCKET  s,
const char *  command,
const void *  data,
ISISDSDataType  type,
const int  dims_array[],
int  ndims 
)
SOCKET isisds_send_open ( const char *  host,
ISISDSAccessMode  access_type 
)
int isisds_set_report_func ( isisds_error_report_t  report_func)

Definition at line 368 of file isisds_command.c.

References status_reporter.

Variable Documentation

const char* isisds_type_code[] = { "U00", "I32", "R32", "R64", "C08" }
static

Definition at line 20 of file isisds_command.h.

const char* isisds_type_name[] = { "Unknown", "Int32", "Real32", "Real64", "Char" }
static

Definition at line 19 of file isisds_command.h.

Referenced by isisds_recv_command_helper().

int isisds_type_size[] = { 0, 4, 4, 8, 1 }
static

Definition at line 18 of file isisds_command.h.

Referenced by isisds_recv_command_helper(), and isisds_send_command().