GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Macros | Functions | Variables
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 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 (ADDRS [], int *)
 
void f_clnup_save (ADDRS [], 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)
 

Variables

static int i_debug = 0
 
static int unsigned lf_swap = 0
 
static int unsigned l_endian_serv
 
int i_channel
 
int unsigned l_clnt_sts
 
int l_status
 
static char c_modnam [] = "f_evcli"
 
short i_sign = 1
 
int l_timeout
 
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
 
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 
)    f_swaplw((int *)ps,(int)l,(int *)pd)

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

int f_evcli_buf ( s_evt_channel ps_chan)

◆ f_evcli_close()

int f_evcli_close ( s_evt_channel ps_chan)

◆ f_evcli_con()

int f_evcli_con ( s_evt_channel ps_chan,
char *  pc_node,
int  l_aport,
int  l_aevents,
int  l_asample 
)

◆ f_evcli_evt()

int f_evcli_evt ( s_evt_channel ps_chan)

◆ f_fltdscr()

int f_fltdscr ( struct s_clnt_filter p_clnt_filter)

◆ f_fltrd()

int f_fltrd ( struct s_clnt_filter p_clnt_filter,
char *  c_file 
)

◆ f_read_server()

int f_read_server ( s_evt_channel ps_chan,
int *  p_bytrd,
int  arg_timeout,
int  i_chan 
)

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

int f_typflt ( struct s_clnt_filter p_clnt_filter)

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

◆ 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

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

◆ s_ackn

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.

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