|
ICP
1
|
#include <stdio.h>#include "isisds_command.h"#include <stdlib.h>#include <string.h>#include <sys/socket.h>#include <netdb.h>#include <netinet/in.h>#include <arpa/inet.h>#include <fcntl.h>#include <unistd.h>Go to the source code of this file.
Classes | |
| struct | isisds_open_t |
| struct | isisds_command_header_t |
Macros | |
| #define | ISISDS_MAJOR_VER 1 |
| #define | ISISDS_MINOR_VER 1 |
| #define | closesocket close |
Functions | |
| static int | recv_all (SOCKET s, char *buffer, int len, int flags) |
| static void | clear_replies (SOCKET s) |
| 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) |
| static int | isisds_recv_command_helper (SOCKET s, char **command, void **data, ISISDSDataType *type, int dims_array[], int *ndims, int do_alloc) |
| int | isisds_recv_command (SOCKET s, char *command, int *len_command, void *data, ISISDSDataType *type, 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_send_close (SOCKET s) |
| static void | default_status_reporter (int status, int code, const char *message) |
| int | isisds_report (int status, int code, const char *format,...) |
| int | isisds_set_report_func (isisds_error_report_t report_func) |
Variables | |
| static isisds_error_report_t | status_reporter = default_status_reporter |
| #define closesocket close |
Definition at line 11 of file isisds_command.c.
Referenced by isisds_send_close(), isisds_send_open(), Qxtrm_driver::loadConfigData(), ISISDS::run(), and ISISDSRequest::~ISISDSRequest().
| #define ISISDS_MAJOR_VER 1 |
Definition at line 7 of file isisds_command.c.
Referenced by isisds_recv_open(), and isisds_send_open().
| #define ISISDS_MINOR_VER 1 |
Definition at line 8 of file isisds_command.c.
Referenced by isisds_recv_open(), and isisds_send_open().
|
static |
Definition at line 68 of file isisds_command.c.
Referenced by isisds_send_command().
|
static |
Definition at line 349 of file isisds_command.c.
| 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().
|
static |
Definition at line 220 of file isisds_command.c.
References isisds_command_header_t::command, isisds_command_header_t::dims_array, isisds_report(), isisds_type_name, isisds_type_size, ISISDSUnknown, isisds_command_header_t::len, isisds_command_header_t::ndims, recv_all(), and isisds_command_header_t::type.
Referenced by isisds_recv_command(), and isisds_recv_command_alloc().
| 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 49 of file isisds_command.c.
Referenced by isisds_recv_command_helper(), and isisds_recv_open().
|
static |
Definition at line 354 of file isisds_command.c.
Referenced by isisds_set_report_func().
1.8.5