GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
s_clntbuf.h
Go to the documentation of this file.
1 // $Id: s_clntbuf.h 478 2009-10-29 12:26:09Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 /*************************************************************************/
15 /* +++ GSI Darmstadt +++ */
16 /* +++ +++ */
17 /*************************************************************************/
18 /*+File name S_CLNTBUF.H */
19 /* */
20 /*************************************************************************/
21 /*+ Update Date Purpose */
22 /*- 10-Dec-1993 : Define testbit and low or high endian */
23 /* and some types changed and 2LW added */
24 /*- 27-Jan-1994 : CLNT_BUFH_LW changed to 11 (RSM) */
25 /*- 02-Feb-1994 : definitions in CLNT_BUF_DEF.H , */
26 /* def. names changed. (RSM) */
27 /*************************************************************************/
28 
29 /* RSM 19-MAR-1993 */
30 /* is a part of s_clntoutbuf */
31 
32 struct s_clntbuf
33  {
34  /* ------ first part of s_clntoutbuf omitted ----------- */
35  /* --- control byte ordering and machine type (2LW) ---- */
36  unsigned int l_testbit; /* bit pattern */
37  unsigned int l_endian; /* endian of sender */
38  /* ----------------------------------------------------- */
39  /* ----- length is CLNT__BUFHEAD ----------------------- */
40  int l_dlen; /* data length [bytes] */
41  int l_free; /* free length [bytes] */
42  int l_events; /* events in buffer */
43  int l_maxbufsiz; /* maximum buffer size */
44  int l_bytestosnd; /* sent bytes */
45  int l_numbuftosnd; /* number of buffers to send */
46  int l_client_con; /* currently connect clients */
47  int unsigned l_buffertype; /* type: data:1 msg:2 flush:4 */
48  /* last:8 1stBUF:16 */
49  /* (inclusive) (mask) */
50  int unsigned l_msgtyp; /* I:1 W:2 E:4 F:8 (exclusive)*/
51  char c_message[CLNT__MSGLEN]; /* error msg and other */
52  /* ----- part of s_control structure ------------------- */
53  /* ----- length is CLNT__INFO_CONTROL ------------------ */
54  int unsigned l_inbuf_read_cnt; /* count read buffer */
55  int unsigned l_inbuf_rdok_cnt; /* count read buffer that are o.k */
56  int unsigned l_inbuf_skip_cnt; /* count skipped buffer */
57  int unsigned l_inbuf_byrd_cnt; /* count read bytes */
58  int unsigned l_inbuf_proc_cnt; /* count processed buffer */
59  int unsigned l_inbuf_prev_cnt; /* count processed events */
60  /* ----- part of s_client structure -------------------- */
61  /* ----- length is CLNT__INFO_CLIENT ------------------- */
62  int unsigned l_clntoutbuf_sdev; /* sent events */
63  int unsigned l_clntoutbuf_sdby; /* sent bytes */
64  int unsigned l_clntoutbuf_sdbf; /* sent buffer */
65  int unsigned l_clntoutbuf_prev; /* processed evt since con */
66  int unsigned l_clntoutbuf_fltm; /* filter matched on evt */
67  /* ----------------------------------------------------------------- */
69  };
unsigned int l_endian
Definition: s_clntbuf.h:37
unsigned int l_testbit
Definition: s_clntbuf.h:36
int unsigned l_inbuf_read_cnt
Definition: s_clntbuf.h:54
int l_dlen
Definition: s_clntbuf.h:40
int l_free
Definition: s_clntbuf.h:41
int unsigned l_clntoutbuf_prev
Definition: s_clntbuf.h:65
#define CLNT__MSGLEN
Definition: clnt_buf_def.h:55
int unsigned l_inbuf_skip_cnt
Definition: s_clntbuf.h:56
int unsigned l_clntoutbuf_sdev
Definition: s_clntbuf.h:62
int l_events
Definition: s_clntbuf.h:42
int unsigned l_inbuf_proc_cnt
Definition: s_clntbuf.h:58
int unsigned l_msgtyp
Definition: s_clntbuf.h:50
int unsigned l_inbuf_prev_cnt
Definition: s_clntbuf.h:59
int unsigned l_clntoutbuf_sdbf
Definition: s_clntbuf.h:64
int unsigned l_clntoutbuf_sdby
Definition: s_clntbuf.h:63
char c_message[CLNT__MSGLEN]
Definition: s_clntbuf.h:51
int l_numbuftosnd
Definition: s_clntbuf.h:45
int unsigned l_buffertype
Definition: s_clntbuf.h:47
int unsigned l_inbuf_rdok_cnt
Definition: s_clntbuf.h:55
int l_bytestosnd
Definition: s_clntbuf.h:44
#define GPS__OUTBUFSIZ
Definition: gps_sc_def.h:30
int unsigned l_clntoutbuf_fltm
Definition: s_clntbuf.h:66
int unsigned l_inbuf_byrd_cnt
Definition: s_clntbuf.h:57
int l_client_con
Definition: s_clntbuf.h:46
int l_maxbufsiz
Definition: s_clntbuf.h:43
char c_buffer[GPS__OUTBUFSIZ]
Definition: s_clntbuf.h:68