GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
f_evcli.c File Reference
#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]
 

Macro Definition Documentation

◆ EVT_MAX

#define EVT_MAX   1000

Definition at line 156 of file f_evcli.c.

◆ F__SWAP

#define F__SWAP ( ps,
l,
pd )
Value:
f_swaplw((int *)ps,(int)l,(int *)pd)
int l
int f_swaplw(int *pp_source, int l_len, int *pp_dest)
Definition f_swaplw.c:69

Definition at line 59 of file f_evcli.c.

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

◆ FLUSH__TIME

#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().

◆ IN_AIX

#define IN_AIX   0

Definition at line 108 of file f_evcli.c.

◆ STDOUT_BUFIO_

#define STDOUT_BUFIO_   1

Definition at line 159 of file f_evcli.c.

◆ TCP__TIMEOUT

#define TCP__TIMEOUT   3000 /* TCP timeout reading buffer */

Definition at line 157 of file f_evcli.c.

Referenced by f_evcli_con().

Function Documentation

◆ f_clnup()

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().

◆ f_clnup_save()

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().

◆ f_evcli_buf()

◆ f_evcli_close()

◆ f_evcli_con()

◆ f_evcli_evt()

◆ f_fltdscr()

◆ f_fltrd()

◆ f_read_server()

◆ f_send_ackn()

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().

◆ f_strtoupper()

void f_strtoupper ( char * u,
char * l )

Definition at line 1775 of file f_evcli.c.

References l.

◆ f_typflt()

◆ swapl()

int swapl ( unsigned int * ,
unsigned int * ,
unsigned int  )

◆ swapw()

int swapw ( unsigned short * ,
unsigned short * ,
unsigned int  )

Variable Documentation

◆ c_modnam

char c_modnam[] = "f_evcli"
static

Definition at line 170 of file f_evcli.c.

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

◆ i_channel

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().

◆ i_debug

int i_debug = 0
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().

◆ i_sign

short i_sign = 1

Definition at line 171 of file f_evcli.c.

◆ l_ack_buf

int l_ack_buf

Definition at line 176 of file f_evcli.c.

◆ l_ack_bytes

int l_ack_bytes

Definition at line 177 of file f_evcli.c.

◆ l_clnt_sts

int unsigned l_clnt_sts

Definition at line 168 of file f_evcli.c.

Referenced by f_evcli_buf().

◆ l_endian_serv

int unsigned l_endian_serv
static

Definition at line 166 of file f_evcli.c.

Referenced by f_evcli_con().

◆ l_status

◆ l_timeout

int l_timeout

Definition at line 172 of file f_evcli.c.

Referenced by f_evcli_buf(), and f_evcli_con().

◆ lf_swap

int unsigned lf_swap = 0
static

Definition at line 165 of file f_evcli.c.

Referenced by f_evcli_buf(), and f_evcli_con().

◆ [struct]

struct { ... } s_ackn

Referenced by f_read_server(), and f_send_ackn().

◆ s_tcpcomm_ec

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

Definition at line 173 of file f_evcli.c.

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

◆ v_mem_clnup

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().