ICP
1
|
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" } |
#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 void(* isisds_error_report_t)(int status, int code, const char *messsage) |
Definition at line 4 of file isisds_command.h.
enum ISISDSAccessMode |
Enumerator | |
---|---|
ISISDSDAEAccess | |
ISISDSCRPTAccess |
Definition at line 15 of file isisds_command.h.
enum ISISDSDataType |
Enumerator | |
---|---|
ISISDSUnknown | |
ISISDSInt32 | |
ISISDSReal32 | |
ISISDSReal64 | |
ISISDSChar |
Definition at line 17 of file isisds_command.h.
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 | ||
) |
Definition at line 160 of file isisds_command.c.
References isisds_open_t::access_type, ISISDS_MAJOR_VER, ISISDS_MINOR_VER, isisds_send_command(), isisds_open_t::len, recv_all(), isisds_open_t::ver_major, and isisds_open_t::ver_minor.
Referenced by ISISDSRequest::run().
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 | ||
) |
Definition at line 185 of file isisds_command.c.
References clear_replies(), isisds_command_header_t::command, isisds_command_header_t::dims_array, isisds_type_size, isisds_command_header_t::len, isisds_command_header_t::ndims, and isisds_command_header_t::type.
Referenced by isisds_recv_open(), and ISISDSRequest::run().
SOCKET isisds_send_open | ( | const char * | host, |
ISISDSAccessMode | access_type | ||
) |
Definition at line 91 of file isisds_command.c.
References isisds_open_t::access_type, closesocket, isisds_open_t::host, INVALID_SOCKET, ISISDS_MAJOR_VER, ISISDS_MINOR_VER, ISISDS_PORT, isisds_recv_command_alloc(), isisds_open_t::len, isisds_open_t::pid, SOCKET, isisds_open_t::user, isisds_open_t::ver_major, and isisds_open_t::ver_minor.
int isisds_set_report_func | ( | isisds_error_report_t | report_func | ) |
Definition at line 368 of file isisds_command.c.
References status_reporter.
|
static |
Definition at line 20 of file isisds_command.h.
|
static |
Definition at line 19 of file isisds_command.h.
Referenced by isisds_recv_command_helper().
|
static |
Definition at line 18 of file isisds_command.h.
Referenced by isisds_recv_command_helper(), and isisds_send_command().