|
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 11568 of file midas.cxx.


| int cm_query_transition | ( | int * | transition, |
| int * | run_number, | ||
| int * | trans_time | ||
| ) |
Definition at line 14145 of file midas.cxx.


|
static |

|
static |
Definition at line 11956 of file midas.cxx.


|
static |
Definition at line 14412 of file midas.cxx.


|
static |
Definition at line 14222 of file midas.cxx.


| INT recv_tcp_check | ( | int | sock | ) |
Definition at line 14382 of file midas.cxx.

| INT rpc_add_allowed_host | ( | const char * | hostname | ) |
Definition at line 15260 of file midas.cxx.


Definition at line 11608 of file midas.cxx.

Definition at line 13688 of file midas.cxx.

|
static |
Definition at line 13427 of file midas.cxx.


|
static |
Definition at line 13256 of file midas.cxx.


| INT rpc_check_allowed_host | ( | const char * | hostname | ) |
Definition at line 15289 of file midas.cxx.


| INT rpc_check_channels | ( | void | ) |
Definition at line 16279 of file midas.cxx.


| INT rpc_clear_allowed_hosts | ( | void | ) |
Definition at line 15235 of file midas.cxx.


| INT rpc_client_accept | ( | int | lsock | ) |
Definition at line 15623 of file midas.cxx.


Definition at line 13497 of file midas.cxx.


| void rpc_client_check | ( | void | ) |
Definition at line 12295 of file midas.cxx.


| INT rpc_client_connect | ( | const char * | host_name, |
| INT | port, | ||
| const char * | client_name, | ||
| HNDLE * | hConnection | ||
| ) |
Definition at line 12037 of file midas.cxx.


Definition at line 12701 of file midas.cxx.


| INT rpc_client_dispatch | ( | int | sock | ) |
Definition at line 11970 of file midas.cxx.


Definition at line 11731 of file midas.cxx.


Definition at line 11706 of file midas.cxx.


| void rpc_debug_printf | ( | const char * | format, |
| ... | |||
| ) |
| INT rpc_deregister_functions | ( | void | ) |
dox
Definition at line 11895 of file midas.cxx.

Definition at line 14675 of file midas.cxx.


| INT rpc_flush_event | ( | void | ) |
| int rpc_flush_event_socket | ( | int | timeout_msec | ) |
Definition at line 16161 of file midas.cxx.


| void rpc_get_convert_flags | ( | INT * | convert_flags | ) |
| INT rpc_get_convert_flags | ( | void | ) |
| INT rpc_get_hw_type | ( | ) |
Definition at line 12859 of file midas.cxx.


|
static |
Definition at line 12637 of file midas.cxx.

| RPC_SERVER_ACCEPTION * rpc_get_mserver_acception | ( | void | ) |
| std::string rpc_get_mserver_hostname | ( | void | ) |
| const char * rpc_get_mserver_path | ( | void | ) |
| std::string rpc_get_name | ( | ) |
|
static |
Definition at line 11530 of file midas.cxx.

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 12998 of file midas.cxx.

| void rpc_ieee2vax_double | ( | double * | var | ) |
Definition at line 11686 of file midas.cxx.

| void rpc_ieee2vax_float | ( | float * | var | ) |
Definition at line 11636 of file midas.cxx.

| bool rpc_is_connected | ( | void | ) |
| bool rpc_is_mserver | ( | void | ) |
| int rpc_name_tid | ( | const char * | name | ) |
|
static |
Definition at line 11543 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 11833 of file midas.cxx.


Definition at line 11922 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 11852 of file midas.cxx.


| INT rpc_register_listener | ( | int | port, |
| RPC_HANDLER | func, | ||
| int * | plsock, | ||
| int * | pport | ||
| ) |
Definition at line 14604 of file midas.cxx.


| INT rpc_register_server | ( | int | port, |
| int * | plsock, | ||
| int * | pport | ||
| ) |
Definition at line 14563 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 13926 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 13944 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 13950 of file midas.cxx.


| INT rpc_server_accept | ( | int | lsock | ) |
Definition at line 15366 of file midas.cxx.


| INT rpc_server_callback | ( | struct callback_addr * | pcallback | ) |
Definition at line 15727 of file midas.cxx.


| INT rpc_server_connect | ( | const char * | host_name, |
| const char * | exp_name | ||
| ) |
Definition at line 12406 of file midas.cxx.


| INT rpc_server_disconnect | ( | void | ) |
Definition at line 12730 of file midas.cxx.


| INT rpc_server_loop | ( | void | ) |
Definition at line 15868 of file midas.cxx.


| INT rpc_server_receive_event | ( | int | idx, |
| RPC_SERVER_ACCEPTION * | sa, | ||
| int | timeout_msec | ||
| ) |
Definition at line 16006 of file midas.cxx.


| INT rpc_server_receive_rpc | ( | int | idx, |
| RPC_SERVER_ACCEPTION * | sa | ||
| ) |
Definition at line 15896 of file midas.cxx.


| INT rpc_server_shutdown | ( | void | ) |
Definition at line 16208 of file midas.cxx.


| INT rpc_set_mserver_path | ( | const char * | path | ) |
| INT rpc_set_name | ( | const char * | name | ) |
Definition at line 13889 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 13023 of file midas.cxx.


|
static |
Definition at line 15338 of file midas.cxx.


| int rpc_test_rpc | ( | ) |
Definition at line 15071 of file midas.cxx.


| const char * rpc_tid_name | ( | INT | id | ) |
| const char * rpc_tid_name_old | ( | INT | id | ) |
Definition at line 14081 of file midas.cxx.


| void rpc_va_arg | ( | va_list * | arg_ptr, |
| INT | arg_type, | ||
| void * | arg | ||
| ) |
Definition at line 13218 of file midas.cxx.

| void rpc_vax2ieee_double | ( | double * | var | ) |
Definition at line 11667 of file midas.cxx.

| void rpc_vax2ieee_float | ( | float * | var | ) |
Definition at line 11651 of file midas.cxx.

|
static |
|
static |
|
static |
|
static |
|
static |
|
static |