Defines | Functions | Variables

MbsAPI/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.

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_filterp_clnt_filter
struct s_clntbufp_clntbuf
struct 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 EVT_MAX   1000

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

Definition at line 169 of file f_evcli.c.

#define IN_AIX   0

Definition at line 108 of file f_evcli.c.

#define STDOUT_BUFIO_   1

Definition at line 170 of file f_evcli.c.

#define TCP__TIMEOUT   3000

Definition at line 168 of file f_evcli.c.


Function Documentation

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

Definition at line 1825 of file f_evcli.c.

References c_modnam, and l_status.

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 1845 of file f_evcli.c.

References c_modnam, and l_status.

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

void f_strtoupper ( char *  u,
char *  l 
)

Definition at line 1772 of file f_evcli.c.

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

short i_len

Definition at line 184 of file f_evcli.c.

short i_sign = 1

Definition at line 184 of file f_evcli.c.

short if_typevt

Definition at line 184 of file f_evcli.c.

int l_ack_buf

Definition at line 190 of file f_evcli.c.

Definition at line 191 of file f_evcli.c.

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_lw1 = CLNT__BUFH_LW [static]

Definition at line 178 of file f_evcli.c.

int l_len_lw2

Definition at line 179 of file f_evcli.c.

Referenced by f_evcli_buf(), and f_evcli_con().

unsigned int l_len_w

Definition at line 162 of file f_evcli.c.

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

Definition at line 172 of file f_evcli.c.

Definition at line 173 of file f_evcli.c.

struct s_opc1* p_opc1

Definition at line 174 of file f_evcli.c.

unsigned short* pi_inbuf

Definition at line 160 of file f_evcli.c.

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]

Definition at line 187 of file f_evcli.c.

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines