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 11551 of file midas.cxx.
|
static |
|
static |
Definition at line 11939 of file midas.cxx.
|
static |
Definition at line 14395 of file midas.cxx.
|
static |
Definition at line 14205 of file midas.cxx.
Definition at line 14365 of file midas.cxx.
Definition at line 15243 of file midas.cxx.
Definition at line 11591 of file midas.cxx.
Definition at line 13671 of file midas.cxx.
|
static |
Definition at line 13410 of file midas.cxx.
Definition at line 13239 of file midas.cxx.
Definition at line 15272 of file midas.cxx.
Definition at line 16262 of file midas.cxx.
Definition at line 15218 of file midas.cxx.
Definition at line 15606 of file midas.cxx.
Definition at line 13480 of file midas.cxx.
Definition at line 12278 of file midas.cxx.
INT rpc_client_connect | ( | const char * | host_name, |
INT | port, | ||
const char * | client_name, | ||
HNDLE * | hConnection | ||
) |
Definition at line 12020 of file midas.cxx.
Definition at line 12684 of file midas.cxx.
Definition at line 11953 of file midas.cxx.
Definition at line 11714 of file midas.cxx.
Definition at line 11689 of file midas.cxx.
dox
Definition at line 11878 of file midas.cxx.
Definition at line 14658 of file midas.cxx.
Definition at line 16144 of file midas.cxx.
INT rpc_get_hw_type | ( | ) |
Definition at line 12842 of file midas.cxx.
|
static |
Definition at line 12620 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 12981 of file midas.cxx.
|
static |
Definition at line 11526 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 11816 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 11835 of file midas.cxx.
INT rpc_register_listener | ( | int | port, |
RPC_HANDLER | func, | ||
int * | plsock, | ||
int * | pport | ||
) |
Definition at line 14587 of file midas.cxx.
Definition at line 14546 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 13909 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 13927 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 13933 of file midas.cxx.
Definition at line 15349 of file midas.cxx.
INT rpc_server_callback | ( | struct callback_addr * | pcallback | ) |
Definition at line 15710 of file midas.cxx.
Definition at line 12389 of file midas.cxx.
Definition at line 12713 of file midas.cxx.
Definition at line 15851 of file midas.cxx.
INT rpc_server_receive_event | ( | int | idx, |
RPC_SERVER_ACCEPTION * | sa, | ||
int | timeout_msec | ||
) |
Definition at line 15989 of file midas.cxx.
INT rpc_server_receive_rpc | ( | int | idx, |
RPC_SERVER_ACCEPTION * | sa | ||
) |
Definition at line 15879 of file midas.cxx.
Definition at line 16191 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 13006 of file midas.cxx.
Definition at line 15321 of file midas.cxx.
int rpc_test_rpc | ( | ) |
Definition at line 15054 of file midas.cxx.
Definition at line 14064 of file midas.cxx.
Definition at line 13201 of file midas.cxx.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |