Functions | |
INT | rpc_register_client (char *name, RPC_LIST *list) |
INT | rpc_register_functions (RPC_LIST *new_list, INT(*func)(INT, void **)) |
INT | rpc_set_option (HNDLE hConn, INT item, INT value) |
INT | rpc_send_event (INT buffer_handle, void *source, INT buf_size, INT async_flag, INT mode) |
INT | rpc_flush_event () |
INT rpc_flush_event | ( | ) |
Send event residing in the TCP cache buffer filled by rpc_send_event. This routine should be called when a run is stopped.
Definition at line 9877 of file midas.c.
Referenced by scan_fragment(), and send_event().
INT rpc_register_client | ( | char * | name, | |
RPC_LIST * | list | |||
) |
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 |
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 7750 of file midas.c.
Referenced by cm_connect_experiment1(), and rpc_register_client().
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 | SYNC / ASYNC flag. In ASYNC mode, the function returns immediately if it cannot send the event over the network. In SYNC 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 9678 of file midas.c.
Referenced by receive_trigger_event(), and send_event().
Set RPC option
hConn | RPC connection handle | |
item | One of RPC_Oxxx | |
value | Value to set |
Definition at line 8749 of file midas.c.
Referenced by bm_receive_event(), cm_transition(), db_send_changed_records(), and main().