GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 (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_filterp_clnt_filter
 
struct s_clntbufp_clntbuf
 
struct s_opc1p_opc1
 
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
 
long v_mem_clnup [8]
 

Macro Definition Documentation

#define EVT_MAX   1000

Definition at line 158 of file f_evcli.c.

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

#define FLUSH__TIME   3 /* flush time interval for MBS event server */

Definition at line 160 of file f_evcli.c.

Referenced by f_evcli_con().

#define IN_AIX   0

Definition at line 108 of file f_evcli.c.

#define STDOUT_BUFIO_   1

Definition at line 161 of file f_evcli.c.

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

Definition at line 159 of file f_evcli.c.

Referenced by f_evcli_con().

Function Documentation

void f_clnup ( long  [],
int *   
)
void f_clnup ( v_mem  ,
int *  p_keyb 
)

Definition at line 1834 of file f_evcli.c.

void f_clnup_save ( long  [],
int *   
)

Referenced by f_evcli_buf(), and f_evcli_con().

void f_clnup_save ( v_mem  ,
int *  p_keyb 
)

Definition at line 1850 of file f_evcli.c.

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 p_clnt_filter)
int f_fltrd ( struct s_clnt_filter p_clnt_filter,
char *  c_file 
)
int f_read_server ( s_evt_channel ps_chan,
int *  p_bytrd,
int  l_timeout,
int  i_chan 
)
int f_send_ackn ( int  l_clnt_sts,
int  i_chan 
)

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

void f_strtoupper ( char *  u,
char *  l 
)

Definition at line 1781 of file f_evcli.c.

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

Variable Documentation

char c_modnam[] = "f_evcli"
static
int i_channel

Definition at line 173 of file f_evcli.c.

Referenced by f_evcli_con().

int i_debug = 0
static

Definition at line 156 of file f_evcli.c.

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

short i_sign = 1

Definition at line 177 of file f_evcli.c.

int l_ack_buf

Definition at line 182 of file f_evcli.c.

int l_ack_bytes

Definition at line 183 of file f_evcli.c.

int unsigned l_clnt_sts

Definition at line 174 of file f_evcli.c.

Referenced by f_evcli_buf(), and f_send_ackn().

int unsigned l_endian_serv
static

Definition at line 172 of file f_evcli.c.

Referenced by f_evcli_con().

unsigned int l_len_w

Definition at line 153 of file f_evcli.c.

int l_status
int l_timeout

Definition at line 178 of file f_evcli.c.

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

int unsigned lf_swap = 0
static

Definition at line 171 of file f_evcli.c.

Referenced by f_evcli_buf(), and f_evcli_con().

struct s_clnt_filter* p_clnt_filter

Definition at line 167 of file f_evcli.c.

Referenced by f_evcli_con().

struct s_clntbuf* p_clntbuf

Definition at line 168 of file f_evcli.c.

Referenced by f_evcli_buf().

struct s_opc1* p_opc1

Definition at line 169 of file f_evcli.c.

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

unsigned short* pi_inbuf

Definition at line 151 of file f_evcli.c.

unsigned int* pl_inbuf

Definition at line 152 of file f_evcli.c.

Referenced by f_evcli_buf().

struct { ... } s_ackn

Referenced by f_read_server(), and f_send_ackn().

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

Definition at line 179 of file f_evcli.c.

long v_mem_clnup[8]

Definition at line 188 of file f_evcli.c.

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