GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#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 | F__SWAP(ps, l, pd) f_swaplw((int *)ps,(int)l,(int *)pd) |
#define | IN_AIX 0 |
#define | EVT_MAX 1000 |
#define | TCP__TIMEOUT 3000 /* TCP timeout reading buffer */ |
#define | FLUSH__TIME 3 /* flush time interval for MBS event server */ |
#define | STDOUT_BUFIO_ 1 |
Functions | |
void | f_clnup (long[], int *) |
void | f_clnup_save (long[], int *) |
int | f_fltdscr (struct s_clnt_filter *) |
int | f_read_server (s_evt_channel *, int *, int, int) |
int | f_send_ackn (int, int) |
int | swapw (unsigned short *, unsigned short *, unsigned int) |
int | swapl (unsigned int *, unsigned int *, unsigned int) |
int | f_evcli_con (s_evt_channel *ps_chan, char *pc_node, int l_aport, int l_aevents, int l_asample) |
int | f_evcli_buf (s_evt_channel *ps_chan) |
int | f_evcli_evt (s_evt_channel *ps_chan) |
int | f_evcli_close (s_evt_channel *ps_chan) |
int | f_fltrd (struct s_clnt_filter *p_clnt_filter, char *c_file) |
int | f_typflt (struct s_clnt_filter *p_clnt_filter) |
void | f_strtoupper (char *u, char *l) |
void | f_clnup (v_mem, int *p_keyb) |
void | f_clnup_save (v_mem, int *p_keyb) |
Variables | |
unsigned short * | pi_inbuf |
unsigned int * | pl_inbuf |
unsigned int | l_len_w |
static int | i_debug = 0 |
struct s_clnt_filter * | p_clnt_filter |
struct s_clntbuf * | p_clntbuf |
struct s_opc1 * | p_opc1 |
static int unsigned | lf_swap = 0 |
static int unsigned | l_endian_serv |
static int | l_len_lw1 = CLNT__BUFH_LW |
int | l_len_lw2 |
int | i_channel |
int unsigned | l_clnt_sts |
int | l_status |
int | l_sts |
static char | c_modnam [] = "f_evcli" |
short | if_typevt |
short | i_sign = 1 |
short | i_len |
int | l_timeout |
int | l_retval |
static struct s_tcpcomm | s_tcpcomm_ec = {0,0,0} |
struct { | |
int l_ack_buf | |
int l_ack_bytes | |
int unsigned l_clnt_sts | |
} | s_ackn |
long | v_mem_clnup [8] |
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 170 of file f_evcli.c.
Referenced by f_evcli_con().
#define TCP__TIMEOUT 3000 /* TCP timeout reading buffer */ |
Definition at line 169 of file f_evcli.c.
Referenced by f_evcli_con().
void f_clnup | ( | long | [], |
int * | |||
) |
Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().
void f_clnup | ( | v_mem | , |
int * | p_keyb | ||
) |
void f_clnup_save | ( | long | [], |
int * | |||
) |
Referenced by f_evcli_buf(), and f_evcli_con().
void f_clnup_save | ( | v_mem | , |
int * | p_keyb | ||
) |
int f_evcli_buf | ( | s_evt_channel * | ps_chan | ) |
Definition at line 383 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, l_len_lw2, s_clntbuf::l_msgtyp, l_retval, l_status, l_sts, s_clntbuf::l_testbit, l_timeout, lf_swap, p_clntbuf, s_evt_channel::pc_evt_buf, s_evt_channel::pc_io_buf, pl_inbuf, 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 493 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, 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 199 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, l_len_lw2, s_clnt_filter::l_numb_of_evt, s_filter::l_opcode, l_retval, s_clnt_filter::l_sample_rate, l_status, l_sts, s_clnt_filter::l_testbit, s_clntbuf::l_testbit, l_timeout, lf_swap, p_clnt_filter, s_evt_channel::pc_evt_buf, s_evt_channel::pc_io_buf, 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 474 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 551 of file f_evcli.c.
References s_opc1::b1_evtsev, s_opc1::b1_selflt, s_opc1::b1_selwrt, s_opc1::b3_opc, c_modnam, FALSE, 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, if(), s_filter::l_offset, s_filter::l_opcode, s_filter::l_pattern, l_status, l_sts, and p_opc1.
Referenced by f_evcli_con().
int f_fltrd | ( | struct s_clnt_filter * | p_clnt_filter, |
char * | c_file | ||
) |
Definition at line 902 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, FALSE, GPS__MAXFLT, s_opc1::h_flt_len, s_opc1::h_fltspec, s_opc1::h_next_fltblk, i_debug, l, s_filter::l_offset, s_filter::l_opcode, s_filter::l_pattern, p_opc1, and TRUE.
int f_read_server | ( | s_evt_channel * | ps_chan, |
int * | p_bytrd, | ||
int | l_timeout, | ||
int | i_chan | ||
) |
Definition at line 1467 of file f_evcli.c.
References s_clntbuf::c_buffer, c_modnam, CLNT__RESTBUF, CLNT__SMALLBUF, F__SWAP, f_stc_disperror(), f_stc_read(), FALSE, GPS__ENV_TESTBIT, i_debug, if(), s_clntbuf::l_buffertype, s_clntbuf::l_bytestosnd, s_clntbuf::l_endian, s_clntbuf::l_numbuftosnd, l_status, s_clntbuf::l_testbit, s_ackn, STC__SUCCESS, and TRUE.
Referenced by f_evcli_buf(), and f_evcli_con().
int f_send_ackn | ( | int | l_clnt_sts, |
int | i_chan | ||
) |
Definition at line 1697 of file f_evcli.c.
References c_modnam, f_stc_disperror(), f_stc_write(), FALSE, i_debug, l_clnt_sts, l_status, 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 1159 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, FALSE, 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_pat2::i_procid, s_pat3::i_subtype, s_pat1::i_trigger, s_pat3::i_type, if(), s_filter::l_offset, s_filter::l_opcode, s_filter::l_pattern, p_opc1, and TRUE.
int swapl | ( | unsigned int * | , |
unsigned int * | , | ||
unsigned | int | ||
) |
int swapw | ( | unsigned short * | , |
unsigned short * | , | ||
unsigned | int | ||
) |
|
static |
Definition at line 184 of file f_evcli.c.
Referenced by f_clnup(), f_clnup_save(), f_evcli_buf(), f_evcli_close(), f_evcli_con(), f_fltdscr(), f_fltrd(), f_read_server(), f_send_ackn(), and f_typflt().
int i_channel |
Definition at line 181 of file f_evcli.c.
Referenced by f_evcli_con().
|
static |
Definition at line 166 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 182 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_send_ackn().
|
static |
Definition at line 178 of file f_evcli.c.
Referenced by f_evcli_con().
|
static |
int l_len_lw2 |
Definition at line 180 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
int l_retval |
Definition at line 187 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_con(), and f_stc_write().
int l_status |
Definition at line 183 of file f_evcli.c.
Referenced by f_clnup(), f_clnup_save(), f_evcli_buf(), f_evcli_close(), f_evcli_con(), f_evt_get_buffer(), f_evt_get_close(), f_evt_get_newbuf(), f_evt_get_open(), f_evt_get_subevent(), f_evt_put_buffer(), f_evt_put_close(), f_evt_put_event(), f_evt_put_open(), f_evt_skip_buffer(), f_evt_type(), f_fltdscr(), f_his_getbas(), f_his_getdir(), f_his_gethis(), f_his_senddir(), f_his_sendhis(), f_his_server(), f_his_wait(), f_radware_out1d(), f_radware_out2d(), f_read_server(), f_send_ackn(), 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(), f_ut_status_r(), and main().
int l_sts |
Definition at line 183 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_con(), and f_fltdscr().
int l_timeout |
Definition at line 186 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
|
static |
Definition at line 177 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
struct s_clnt_filter* p_clnt_filter |
Definition at line 173 of file f_evcli.c.
Referenced by f_evcli_con().
struct s_clntbuf* p_clntbuf |
Definition at line 174 of file f_evcli.c.
Referenced by f_evcli_buf().
struct s_opc1* p_opc1 |
Definition at line 175 of file f_evcli.c.
Referenced by f_fltdscr(), f_fltrd(), and f_typflt().
unsigned int* pl_inbuf |
Definition at line 162 of file f_evcli.c.
Referenced by f_evcli_buf().
struct { ... } s_ackn |
Referenced by f_read_server(), and f_send_ackn().
long v_mem_clnup[8] |
Definition at line 197 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().