GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
#include "typedefs.h"
#include "gps_sc_def.h"
#include "s_filter.h"
#include "clnt_buf_def.h"
#include "s_clntbuf.h"
#include "fLmd.h"
#include "f_evcli.h"
#include "f_swaplw.h"
#include "s_flt_descr.h"
#include "s_clnt_filter.h"
#include "s_opc1.h"
#include "s_pat.h"
Go to the source code of this file.
Macros | |
#define | EVT_MAX 1000 |
#define | F__SWAP(ps, l, pd) |
#define | FLUSH__TIME 3 /* flush time interval for MBS event server */ |
#define | IN_AIX 0 |
#define | STDOUT_BUFIO_ 1 |
#define | TCP__TIMEOUT 3000 /* TCP timeout reading buffer */ |
Functions | |
void | f_clnup (ADDRS[], int *) |
void | f_clnup_save (ADDRS[], int *) |
int | f_evcli_buf (s_evt_channel *ps_chan) |
int | f_evcli_close (s_evt_channel *ps_chan) |
int | f_evcli_con (s_evt_channel *ps_chan, char *pc_node, int l_aport, int l_aevents, int l_asample) |
int | f_evcli_evt (s_evt_channel *ps_chan) |
int | f_fltdscr (struct s_clnt_filter *) |
int | f_fltrd (struct s_clnt_filter *p_clnt_filter, char *c_file) |
int | f_read_server (s_evt_channel *, int *, int, int) |
int | f_send_ackn (int, int) |
void | f_strtoupper (char *u, char *l) |
int | f_typflt (struct s_clnt_filter *p_clnt_filter) |
int | swapl (unsigned int *, unsigned int *, unsigned int) |
int | swapw (unsigned short *, unsigned short *, unsigned int) |
Variables | ||
static char | c_modnam [] = "f_evcli" | |
int | i_channel | |
static int | i_debug = 0 | |
short | i_sign = 1 | |
int unsigned | l_clnt_sts | |
static int unsigned | l_endian_serv | |
int | l_status | |
int | l_timeout | |
static int unsigned | lf_swap = 0 | |
struct { | ||
int l_ack_buf | ||
int l_ack_bytes | ||
int unsigned l_clnt_sts | ||
} | s_ackn | |
static struct s_tcpcomm | s_tcpcomm_ec = {0,0,0} | |
ADDRS | v_mem_clnup [8] | |
#define F__SWAP | ( | ps, | |
l, | |||
pd ) |
Definition at line 59 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_con(), and f_read_server().
#define FLUSH__TIME 3 /* flush time interval for MBS event server */ |
Definition at line 158 of file f_evcli.c.
Referenced by f_evcli_con().
#define TCP__TIMEOUT 3000 /* TCP timeout reading buffer */ |
Definition at line 157 of file f_evcli.c.
Referenced by f_evcli_con().
void f_clnup | ( | ADDRS | v_mem[], |
int * | p_keyb ) |
Definition at line 1827 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().
void f_clnup_save | ( | ADDRS | v_mem[], |
int * | p_keyb ) |
Definition at line 1841 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
int f_evcli_buf | ( | s_evt_channel * | ps_chan | ) |
Definition at line 375 of file f_evcli.c.
References s_clntbuf::c_buffer, s_clntbuf::c_message, c_modnam, CLNT__BUFH_LW, CLNT__REST_LW, F__SWAP, f_clnup(), f_clnup_save(), f_read_server(), f_send_ackn(), f_stc_close(), s_clntbuf::l_buffertype, s_evt_channel::l_channel_no, l_clnt_sts, s_clntbuf::l_dlen, s_clntbuf::l_events, s_evt_channel::l_evt_buf_posi, s_clntbuf::l_inbuf_read_cnt, s_evt_channel::l_io_buf_size, s_clntbuf::l_msgtyp, l_status, s_clntbuf::l_testbit, l_timeout, lf_swap, s_evt_channel::pc_evt_buf, s_evt_channel::pc_io_buf, s_tcpcomm_ec, STC__SUCCESS, STC__TIMEOUT, TRUE, and v_mem_clnup.
Referenced by f_evt_get_event().
int f_evcli_close | ( | s_evt_channel * | ps_chan | ) |
Definition at line 498 of file f_evcli.c.
References c_modnam, f_clnup(), f_send_ackn(), f_stc_close(), f_stc_discclient(), s_evt_channel::l_channel_no, l_status, s_tcpcomm_ec, STC__SUCCESS, TRUE, and v_mem_clnup.
Referenced by f_evt_get_close().
int f_evcli_con | ( | s_evt_channel * | ps_chan, |
char * | pc_node, | ||
int | l_aport, | ||
int | l_aevents, | ||
int | l_asample ) |
Definition at line 185 of file f_evcli.c.
References s_opc1::b1_evtsev, s_opc1::b1_lnkf1, s_opc1::b1_lnkf2, s_opc1::b1_selflt, s_opc1::b1_selwrt, s_opc1::b3_opc, c_modnam, CLNT__BUFH_LW, CLNT__OUTBUFHEAD, CLNT__REST_LW, F__SWAP, f_clnup(), f_clnup_save(), f_fltdscr(), f_read_server(), f_stc_close(), f_stc_connectserver(), f_stc_disperror(), f_stc_write(), s_clnt_filter::filter, FLUSH__TIME, GPS__CLNT_SNDFLT, GPS__ENV_TESTBIT, GPS__OUTBUFSIZ, s_opc1::h_flt_len, s_opc1::h_fltspec, s_opc1::h_next_fltblk, i_channel, s_clntbuf::l_buffertype, s_evt_channel::l_channel_no, s_clntbuf::l_dlen, s_clnt_filter::l_endian, s_clntbuf::l_endian, l_endian_serv, s_clnt_filter::l_flush_rate, s_clntbuf::l_inbuf_read_cnt, s_evt_channel::l_io_buf_size, s_clnt_filter::l_numb_of_evt, s_filter::l_opcode, s_clnt_filter::l_sample_rate, l_status, s_clnt_filter::l_testbit, s_clntbuf::l_testbit, l_timeout, lf_swap, s_evt_channel::pc_evt_buf, s_evt_channel::pc_io_buf, s_tcpcomm_ec, STC__SUCCESS, TCP__TIMEOUT, TRUE, and v_mem_clnup.
Referenced by f_evt_get_open().
int f_evcli_evt | ( | s_evt_channel * | ps_chan | ) |
Definition at line 478 of file f_evcli.c.
References s_ve10_1::l_dlen, s_clntbuf::l_events, s_evt_channel::l_evt_buf_posi, s_evt_channel::pc_evt_buf, s_evt_channel::pc_io_buf, and STC__SUCCESS.
Referenced by f_evt_get_event().
int f_fltdscr | ( | struct s_clnt_filter * | p_clnt_filter | ) |
Definition at line 557 of file f_evcli.c.
References s_opc1::b1_evtsev, s_opc1::b1_selflt, s_opc1::b1_selwrt, s_opc1::b3_opc, FALSE, s_clnt_filter::filter, s_clnt_filter::flt_descr, GPS__MAXFLT, s_opc1::h_flt_len, s_flt_descr::h_fltblkbeg, s_flt_descr::h_fltblkend, s_opc1::h_fltspec, s_opc1::h_next_fltblk, s_flt_descr::h_nextdescr, s_flt_descr::hf_fltdescr, s_flt_descr::hf_wrtdescr, i_debug, s_flt_descr::i_descriptors, s_clnt_filter::if_fltevt, s_clnt_filter::if_fltsev, s_clnt_filter::if_wrtevt, s_clnt_filter::if_wrtsev, s_filter::l_offset, s_filter::l_opcode, and s_filter::l_pattern.
Referenced by f_evcli_con().
int f_fltrd | ( | struct s_clnt_filter * | p_clnt_filter, |
char * | c_file ) |
Definition at line 896 of file f_evcli.c.
References s_opc1::b1_evtsev, s_opc1::b1_lnkf1, s_opc1::b1_lnkf2, s_opc1::b1_selflt, s_opc1::b1_selwrt, s_opc1::b3_opc, FALSE, s_clnt_filter::filter, GPS__MAXFLT, s_opc1::h_flt_len, s_opc1::h_fltspec, s_opc1::h_next_fltblk, i_debug, s_filter::l_offset, s_filter::l_opcode, s_filter::l_pattern, and TRUE.
int f_read_server | ( | s_evt_channel * | ps_chan, |
int * | p_bytrd, | ||
int | arg_timeout, | ||
int | i_chan ) |
Definition at line 1451 of file f_evcli.c.
References s_clntbuf::c_buffer, s_evt_channel::cb_polling, CLNT__RESTBUF, CLNT__SMALLBUF, F__SWAP, f_stc_disperror(), f_stc_read(), FALSE, GPS__ENV_TESTBIT, i_debug, s_clntbuf::l_buffertype, s_clntbuf::l_bytestosnd, s_clntbuf::l_endian, s_evt_channel::l_io_buf_size, s_clntbuf::l_numbuftosnd, s_clntbuf::l_testbit, s_evt_channel::pc_io_buf, s_ackn, STC__SUCCESS, STC__TIMEOUT, and TRUE.
Referenced by f_evcli_buf(), and f_evcli_con().
int f_send_ackn | ( | int | l_clnt_sts1, |
int | i_chan ) |
Definition at line 1701 of file f_evcli.c.
References f_stc_disperror(), f_stc_write(), FALSE, i_debug, s_ackn, STC__SUCCESS, and TRUE.
Referenced by f_evcli_buf(), and f_evcli_close().
int f_typflt | ( | struct s_clnt_filter * | p_clnt_filter | ) |
Definition at line 1144 of file f_evcli.c.
References s_opc1::b1_evtsev, s_opc1::b1_lnkf1, s_opc1::b1_lnkf2, s_opc1::b1_selflt, s_opc1::b1_selwrt, s_opc1::b3_opc, FALSE, s_clnt_filter::filter, s_clnt_filter::flt_descr, s_pat2::h_control, s_flt_descr::h_fltblkbeg, s_flt_descr::h_fltblkend, s_opc1::h_fltspec, s_pat2::h_subcrate, i_debug, s_flt_descr::i_descriptors, s_pat2::i_procid, s_pat3::i_subtype, s_pat1::i_trigger, s_pat3::i_type, s_clnt_filter::if_fltevt, s_clnt_filter::if_fltsev, s_clnt_filter::if_wrtevt, s_clnt_filter::if_wrtsev, s_filter::l_offset, s_filter::l_opcode, s_filter::l_pattern, and TRUE.
int swapl | ( | unsigned int * | , |
unsigned int * | , | ||
unsigned int | ) |
int swapw | ( | unsigned short * | , |
unsigned short * | , | ||
unsigned int | ) |
|
static |
Definition at line 170 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().
int i_channel |
Definition at line 167 of file f_evcli.c.
Referenced by f_evcli_con(), f_stc_discclient(), f_stc_read(), and f_stc_write().
|
static |
Definition at line 154 of file f_evcli.c.
Referenced by f_fltdscr(), f_fltrd(), f_read_server(), f_send_ackn(), and f_typflt().
int unsigned l_clnt_sts |
Definition at line 168 of file f_evcli.c.
Referenced by f_evcli_buf().
|
static |
Definition at line 166 of file f_evcli.c.
Referenced by f_evcli_con().
int l_status |
Definition at line 169 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_close(), f_evcli_con(), f_evt_get_buffer(), f_evt_get_newbuf(), f_evt_get_open(), f_evt_put_buffer(), f_evt_put_close(), f_evt_put_event(), f_evt_put_open(), f_evt_type(), f_his_getbas(), f_his_getdir(), f_his_gethis(), f_his_senddir(), f_his_sendhis(), f_his_server(), f_his_wait(), f_mbs_ml_setup(), f_mbs_mo_setup(), f_mbs_setup(), f_mbs_status(), f_radware_out1d(), f_radware_out2d(), f_ut_set_ml(), f_ut_set_ml_r(), f_ut_set_mo(), f_ut_set_mo_r(), f_ut_setup(), f_ut_setup_r(), f_ut_status(), and f_ut_status_r().
int l_timeout |
Definition at line 172 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
|
static |
Definition at line 165 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
struct { ... } s_ackn |
Referenced by f_read_server(), and f_send_ackn().
|
static |
Definition at line 173 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().
ADDRS v_mem_clnup[8] |
Definition at line 182 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().