#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.
Defines | |
#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 |
#define | FLUSH__TIME 3 |
#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().
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 382 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, s_evt_channel::pc_evt_buf, s_evt_channel::pc_io_buf, pl_inbuf, TRUE, and v_mem_clnup.
Referenced by f_evt_get_event().
int f_evcli_close | ( | s_evt_channel * | ps_chan | ) |
Definition at line 492 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 198 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__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(), GPS__ENV_TESTBIT, GPS__OUTBUFSIZ, s_opc1::h_flt_len, s_opc1::h_fltspec, s_opc1::h_next_fltblk, i_channel, s_evt_channel::l_channel_no, l_endian_serv, s_evt_channel::l_io_buf_size, l_len_lw2, l_retval, l_status, l_sts, l_timeout, lf_swap, s_evt_channel::pc_evt_buf, s_evt_channel::pc_io_buf, STC__SUCCESS, TRUE, and v_mem_clnup.
Referenced by f_evt_get_open().
int f_evcli_evt | ( | s_evt_channel * | ps_chan | ) |
Definition at line 473 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 550 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, 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_filter::l_offset, s_filter::l_opcode, s_filter::l_pattern, l_status, and l_sts.
Referenced by f_evcli_con().
int f_fltrd | ( | struct s_clnt_filter * | p_clnt_filter, | |
char * | c_file | |||
) |
Definition at line 901 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, and TRUE.
int f_read_server | ( | s_evt_channel * | ps_chan, | |
int * | p_bytrd, | |||
int | l_timeout, | |||
int | i_chan | |||
) |
Definition at line 1466 of file f_evcli.c.
References c_modnam, CLNT__RESTBUF, CLNT__SMALLBUF, F__SWAP, f_stc_disperror(), f_stc_read(), FALSE, GPS__ENV_TESTBIT, i_debug, l_status, 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 1696 of file f_evcli.c.
References c_modnam, f_stc_disperror(), f_stc_write(), FALSE, i_debug, 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 1158 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, 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 | |||
) |
char c_modnam[] = "f_evcli" [static] |
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_fltdscr(), f_fltrd(), f_read_server(), f_send_ackn(), and f_typflt().
int i_channel |
Definition at line 180 of file f_evcli.c.
Referenced by f_evcli_con().
int i_debug = 0 [static] |
Definition at line 165 of file f_evcli.c.
Referenced by f_fltdscr(), f_fltrd(), f_read_server(), f_send_ackn(), and f_typflt().
int l_ack_bytes |
int unsigned l_clnt_sts |
Definition at line 181 of file f_evcli.c.
Referenced by f_evcli_buf().
int unsigned l_endian_serv [static] |
Definition at line 177 of file f_evcli.c.
Referenced by f_evcli_con().
int l_len_lw2 |
Definition at line 179 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
int l_retval |
Definition at line 186 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_con(), and f_stc_write().
int l_status |
Definition at line 182 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_mbs_ml_setup(), f_mbs_mo_setup(), f_mbs_setup(), f_mbs_status(), 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 182 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_con(), and f_fltdscr().
int l_timeout |
Definition at line 185 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
int unsigned lf_swap = 0 [static] |
Definition at line 176 of file f_evcli.c.
Referenced by f_evcli_buf(), and f_evcli_con().
struct s_clnt_filter* p_clnt_filter |
unsigned int* pl_inbuf |
Definition at line 161 of file f_evcli.c.
Referenced by f_evcli_buf().
struct { ... } s_ackn [static] |
Referenced by f_read_server(), and f_send_ackn().
struct s_tcpcomm s_tcpcomm_ec = {0,0,0} [static] |
long v_mem_clnup[8] |
Definition at line 196 of file f_evcli.c.
Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().