Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

f_evcli.c File Reference

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
s_clnt_filterp_clnt_filter
s_clntbufp_clntbuf
s_opc1p_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]


Define Documentation

#define F__SWAP ps,
l,
pd   )     f_swaplw((int *)ps,(int)l,(int *)pd)
 

Definition at line 61 of file f_evcli.c.

Referenced by f_evcli_buf(), f_evcli_con(), and f_read_server().

#define IN_AIX   0
 

Definition at line 105 of file f_evcli.c.

#define EVT_MAX   1000
 

Definition at line 164 of file f_evcli.c.

#define TCP__TIMEOUT   3000
 

Definition at line 165 of file f_evcli.c.

Referenced by f_evcli_con().

#define FLUSH__TIME   3
 

Definition at line 166 of file f_evcli.c.

Referenced by f_evcli_con().

#define STDOUT_BUFIO_   1
 

Definition at line 167 of file f_evcli.c.


Function Documentation

void f_clnup long  [],
int * 
 

Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().

void f_clnup_save long  [],
int * 
 

Referenced by f_evcli_buf(), and f_evcli_con().

int f_fltdscr struct s_clnt_filter  ) 
 

Definition at line 547 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, s_filter::l_offset, s_filter::l_opcode, s_filter::l_pattern, l_status, and l_sts.

Referenced by f_evcli_con().

int f_read_server s_evt_channel ,
int *  ,
int  ,
int 
 

Definition at line 1463 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  ,
int 
 

Definition at line 1693 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 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
 

Definition at line 195 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(), 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_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, TCP__TIMEOUT, TRUE, and v_mem_clnup.

Referenced by f_evt_get_open().

int f_evcli_buf s_evt_channel ps_chan  ) 
 

Definition at line 379 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, STC__SUCCESS, STC__TIMEOUT, TRUE, and v_mem_clnup.

Referenced by f_evt_get_event().

int f_evcli_evt s_evt_channel ps_chan  ) 
 

Definition at line 470 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_evcli_close s_evt_channel ps_chan  ) 
 

Definition at line 489 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_fltrd struct s_clnt_filter p_clnt_filter,
char *  c_file
 

Definition at line 898 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_typflt struct s_clnt_filter p_clnt_filter  ) 
 

Definition at line 1155 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.

void f_strtoupper char *  u,
char *  l
 

Definition at line 1769 of file f_evcli.c.

void f_clnup v_mem  ,
int *  p_keyb
 

Definition at line 1822 of file f_evcli.c.

References c_modnam, and l_status.

void f_clnup_save v_mem  ,
int *  p_keyb
 

Definition at line 1842 of file f_evcli.c.

References c_modnam, and l_status.


Variable Documentation

unsigned short* pi_inbuf
 

Definition at line 157 of file f_evcli.c.

unsigned int* pl_inbuf
 

Definition at line 158 of file f_evcli.c.

Referenced by f_evcli_buf().

unsigned int l_len_w
 

Definition at line 159 of file f_evcli.c.

int i_debug = 0 [static]
 

Definition at line 162 of file f_evcli.c.

Referenced by f_fltdscr(), f_fltrd(), f_read_server(), f_send_ackn(), and f_typflt().

struct s_clnt_filter* p_clnt_filter
 

Definition at line 169 of file f_evcli.c.

struct s_clntbuf* p_clntbuf
 

Definition at line 170 of file f_evcli.c.

struct s_opc1* p_opc1
 

Definition at line 171 of file f_evcli.c.

int unsigned lf_swap = 0 [static]
 

Definition at line 173 of file f_evcli.c.

Referenced by f_evcli_buf(), and f_evcli_con().

int unsigned l_endian_serv [static]
 

Definition at line 174 of file f_evcli.c.

Referenced by f_evcli_con().

int l_len_lw1 = CLNT__BUFH_LW [static]
 

Definition at line 175 of file f_evcli.c.

int l_len_lw2
 

Definition at line 176 of file f_evcli.c.

Referenced by f_evcli_buf(), and f_evcli_con().

int i_channel
 

Definition at line 177 of file f_evcli.c.

Referenced by f_evcli_con().

int unsigned l_clnt_sts
 

Definition at line 189 of file f_evcli.c.

Referenced by f_evcli_buf().

int l_status
 

Definition at line 179 of file f_evcli.c.

Referenced by f_clnup(), f_clnup_save(), f_evcli_buf(), f_evcli_close(), f_evcli_con(), f_evt_get_close(), f_evt_get_open(), f_evt_get_subevent(), f_evt_put_open(), 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 179 of file f_evcli.c.

Referenced by f_evcli_buf(), f_evcli_con(), and f_fltdscr().

char c_modnam[] = "f_evcli" [static]
 

Definition at line 180 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().

short if_typevt
 

Definition at line 181 of file f_evcli.c.

short i_sign = 1
 

Definition at line 181 of file f_evcli.c.

short i_len
 

Definition at line 181 of file f_evcli.c.

int l_timeout
 

Definition at line 182 of file f_evcli.c.

Referenced by f_evcli_buf(), and f_evcli_con().

int l_retval
 

Definition at line 183 of file f_evcli.c.

Referenced by f_evcli_buf(), f_evcli_con(), and f_stc_write().

struct s_tcpcomm s_tcpcomm_ec = {0,0,0} [static]
 

Definition at line 184 of file f_evcli.c.

int l_ack_buf
 

Definition at line 187 of file f_evcli.c.

int l_ack_bytes
 

Definition at line 188 of file f_evcli.c.

struct { ... } s_ackn [static]
 

Referenced by f_read_server(), and f_send_ackn().

long v_mem_clnup[8]
 

Definition at line 193 of file f_evcli.c.

Referenced by f_evcli_buf(), f_evcli_close(), and f_evcli_con().


Generated on Fri Nov 28 13:00:12 2008 for Go4-v3.04-1 by  doxygen 1.4.2