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 11565 of file midas.cxx.
|
static |
|
static |
Definition at line 11953 of file midas.cxx.
|
static |
Definition at line 14409 of file midas.cxx.
|
static |
Definition at line 14219 of file midas.cxx.
Definition at line 14379 of file midas.cxx.
Definition at line 15257 of file midas.cxx.
Definition at line 11605 of file midas.cxx.
Definition at line 13685 of file midas.cxx.
|
static |
Definition at line 13424 of file midas.cxx.
Definition at line 13253 of file midas.cxx.
Definition at line 15286 of file midas.cxx.
Definition at line 16276 of file midas.cxx.
Definition at line 15232 of file midas.cxx.
Definition at line 15620 of file midas.cxx.
Definition at line 13494 of file midas.cxx.
Definition at line 12292 of file midas.cxx.
INT rpc_client_connect | ( | const char * | host_name, |
INT | port, | ||
const char * | client_name, | ||
HNDLE * | hConnection | ||
) |
Definition at line 12034 of file midas.cxx.
Definition at line 12698 of file midas.cxx.
Definition at line 11967 of file midas.cxx.
Definition at line 11728 of file midas.cxx.
Definition at line 11703 of file midas.cxx.
dox
Definition at line 11892 of file midas.cxx.
Definition at line 14672 of file midas.cxx.
Definition at line 16158 of file midas.cxx.
INT rpc_get_hw_type | ( | ) |
Definition at line 12856 of file midas.cxx.
|
static |
Definition at line 12634 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 12995 of file midas.cxx.
|
static |
Definition at line 11540 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 11830 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 11849 of file midas.cxx.
INT rpc_register_listener | ( | int | port, |
RPC_HANDLER | func, | ||
int * | plsock, | ||
int * | pport | ||
) |
Definition at line 14601 of file midas.cxx.
Definition at line 14560 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 13923 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 13941 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 13947 of file midas.cxx.
Definition at line 15363 of file midas.cxx.
INT rpc_server_callback | ( | struct callback_addr * | pcallback | ) |
Definition at line 15724 of file midas.cxx.
Definition at line 12403 of file midas.cxx.
Definition at line 12727 of file midas.cxx.
Definition at line 15865 of file midas.cxx.
INT rpc_server_receive_event | ( | int | idx, |
RPC_SERVER_ACCEPTION * | sa, | ||
int | timeout_msec | ||
) |
Definition at line 16003 of file midas.cxx.
INT rpc_server_receive_rpc | ( | int | idx, |
RPC_SERVER_ACCEPTION * | sa | ||
) |
Definition at line 15893 of file midas.cxx.
Definition at line 16205 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 13020 of file midas.cxx.
Definition at line 15335 of file midas.cxx.
int rpc_test_rpc | ( | ) |
Definition at line 15068 of file midas.cxx.
Definition at line 14078 of file midas.cxx.
Definition at line 13215 of file midas.cxx.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |