MIDAS
|
Classes | |
class | RPC_CLIENT_CONNECTION |
struct | TR_FIFO |
struct | TLS_POINTER |
Variables | |
static std::mutex | _client_connections_mutex |
static std::vector< RPC_CLIENT_CONNECTION * > | _client_connections |
static RPC_SERVER_CONNECTION | _server_connection |
static bool | _rpc_is_remote = false |
static std::vector< RPC_SERVER_ACCEPTION * > | _server_acceptions |
static RPC_SERVER_ACCEPTION * | _mserver_acception = NULL |
static std::vector< RPC_LIST > | rpc_list |
static std::mutex | rpc_list_mutex |
static int | _opt_tcp_size = OPT_TCP_SIZE |
static std::string | _mserver_path |
static std::mutex | _tr_fifo_mutex |
static TR_FIFO | _tr_fifo [10] |
static int | _tr_fifo_wp = 0 |
static int | _tr_fifo_rp = 0 |
static TLS_POINTER * | tls_buffer = NULL |
static int | tls_size = 0 |
static std::vector< std::string > | gAllowedHosts |
static std::mutex | gAllowedHostsMutex |
dox dox dox
#define RPC_CM_SET_CLIENT_INFO 11000 |
void RPC_SERVER_ACCEPTION::close | ( | ) |
Definition at line 11543 of file midas.cxx.
|
static |
|
static |
Definition at line 11931 of file midas.cxx.
|
static |
Definition at line 14387 of file midas.cxx.
|
static |
Definition at line 14197 of file midas.cxx.
Definition at line 14357 of file midas.cxx.
Definition at line 15235 of file midas.cxx.
Definition at line 11583 of file midas.cxx.
Definition at line 13663 of file midas.cxx.
|
static |
Definition at line 13402 of file midas.cxx.
Definition at line 13231 of file midas.cxx.
Definition at line 15264 of file midas.cxx.
Definition at line 16254 of file midas.cxx.
Definition at line 15210 of file midas.cxx.
Definition at line 15598 of file midas.cxx.
Definition at line 13472 of file midas.cxx.
Definition at line 12270 of file midas.cxx.
INT rpc_client_connect | ( | const char * | host_name, |
INT | port, | ||
const char * | client_name, | ||
HNDLE * | hConnection | ||
) |
Definition at line 12012 of file midas.cxx.
Definition at line 12676 of file midas.cxx.
Definition at line 11945 of file midas.cxx.
Definition at line 11706 of file midas.cxx.
Definition at line 11681 of file midas.cxx.
dox
Definition at line 11870 of file midas.cxx.
Definition at line 14650 of file midas.cxx.
Definition at line 16136 of file midas.cxx.
INT rpc_get_hw_type | ( | ) |
Definition at line 12834 of file midas.cxx.
|
static |
Definition at line 12612 of file midas.cxx.
RPC_SERVER_ACCEPTION * rpc_get_mserver_acception | ( | void | ) |
std::string rpc_get_mserver_hostname | ( | void | ) |
std::string rpc_get_name | ( | ) |
|
static |
dox Set RPC option
hConn | RPC connection handle, -1 for server connection, -2 for rpc connect timeout |
item | One of RPC_Oxxx |
value | Value to set |
hConn | RPC connection handle, RPC_HNDLE_MSERVER for mserver connection, RPC_HNDLE_CONNECT for rpc connect timeout |
Definition at line 12973 of file midas.cxx.
|
static |
Definition at line 11518 of file midas.cxx.
Register RPC client for standalone mode (without standard midas server)
list | Array of RPC_LIST structures containing function IDs and parameter definitions. The end of the list must be indicated by a function ID of zero. |
name | Name of this client |
Definition at line 11808 of file midas.cxx.
INT rpc_register_functions | ( | const RPC_LIST * | new_list, |
RPC_HANDLER | func | ||
) |
Register a set of RPC functions (both as clients or servers)
new_list | Array of RPC_LIST structures containing function IDs and parameter definitions. The end of the list must be indicated by a function ID of zero. |
func | Default dispatch function |
Definition at line 11827 of file midas.cxx.
INT rpc_register_listener | ( | int | port, |
RPC_HANDLER | func, | ||
int * | plsock, | ||
int * | pport | ||
) |
Definition at line 14579 of file midas.cxx.
Definition at line 14538 of file midas.cxx.
INT rpc_send_event | ( | INT | buffer_handle, |
const EVENT_HEADER * | pevent, | ||
int | unused, | ||
INT | async_flag, | ||
INT | mode | ||
) |
dox Fast send_event routine which bypasses the RPC layer and sends the event directly at the TCP level.
buffer_handle | Handle of the buffer to send the event to. Must be obtained via bm_open_buffer. |
source | Address of the event to send. It must have a proper event header. |
buf_size | Size of event in bytes with header. |
async_flag | BM_WAIT / BM_NO_WAIT flag. In BM_NO_WAIT mode, the function returns immediately if it cannot send the event over the network. In BM_WAIT mode, it waits until the packet is sent (blocking). |
mode | Determines in which mode the event is sent. If zero, use RPC socket, if one, use special event socket to bypass RPC layer on the server side. |
Definition at line 13901 of file midas.cxx.
INT rpc_send_event1 | ( | INT | buffer_handle, |
const EVENT_HEADER * | pevent | ||
) |
Send event to mserver using the event socket connection, bypassing the RPC layer
buffer_handle | Handle of the buffer to send the event to. Must be obtained via bm_open_buffer. |
event | Pointer to event header |
Definition at line 13919 of file midas.cxx.
INT rpc_send_event_sg | ( | INT | buffer_handle, |
int | sg_n, | ||
const char *const | sg_ptr[], | ||
const size_t | sg_len[] | ||
) |
Definition at line 13925 of file midas.cxx.
Definition at line 15341 of file midas.cxx.
INT rpc_server_callback | ( | struct callback_addr * | pcallback | ) |
Definition at line 15702 of file midas.cxx.
Definition at line 12381 of file midas.cxx.
Definition at line 12705 of file midas.cxx.
Definition at line 15843 of file midas.cxx.
INT rpc_server_receive_event | ( | int | idx, |
RPC_SERVER_ACCEPTION * | sa, | ||
int | timeout_msec | ||
) |
Definition at line 15981 of file midas.cxx.
INT rpc_server_receive_rpc | ( | int | idx, |
RPC_SERVER_ACCEPTION * | sa | ||
) |
Definition at line 15871 of file midas.cxx.
Definition at line 16183 of file midas.cxx.
Set RPC timeout
hConn | RPC connection handle, RPC_HNDLE_MSERVER for mserver connection, RPC_HNDLE_CONNECT for rpc connect timeout |
timeout_msec | RPC timeout in milliseconds |
old_timeout_msec | returns old value of RPC timeout in milliseconds |
Definition at line 12998 of file midas.cxx.
Definition at line 15313 of file midas.cxx.
int rpc_test_rpc | ( | ) |
Definition at line 15046 of file midas.cxx.
Definition at line 14056 of file midas.cxx.
Definition at line 13193 of file midas.cxx.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |