GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 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 3333 2021-10-18 11:27:07Z 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 fuer 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 #ifndef S_CLNTBUF_H
33 #define S_CLNTBUF_H
34 
35 struct s_clntbuf
36  {
37  /* ------ first part of s_clntoutbuf omitted ----------- */
38  /* --- control byte ordering and machine type (2LW) ---- */
39  unsigned int l_testbit; /* bit pattern */
40  unsigned int l_endian; /* endian of sender */
41  /* ----------------------------------------------------- */
42  /* ----- length is CLNT__BUFHEAD ----------------------- */
43  int l_dlen; /* data length [bytes] */
44  int l_free; /* free length [bytes] */
45  int l_events; /* events in buffer */
46  int l_maxbufsiz; /* maximum buffer size */
47  int l_bytestosnd; /* sent bytes */
48  int l_numbuftosnd; /* number of buffers to send */
49  int l_client_con; /* currently connect clients */
50  int unsigned l_buffertype; /* type: data:1 msg:2 flush:4 */
51  /* last:8 1stBUF:16 */
52  /* (inclusive) (mask) */
53  int unsigned l_msgtyp; /* I:1 W:2 E:4 F:8 (exclusive)*/
54  char c_message[CLNT__MSGLEN]; /* error msg and other */
55  /* ----- part of s_control structure ------------------- */
56  /* ----- length is CLNT__INFO_CONTROL ------------------ */
57  int unsigned l_inbuf_read_cnt; /* count read buffer */
58  int unsigned l_inbuf_rdok_cnt; /* count read buffer that are o.k */
59  int unsigned l_inbuf_skip_cnt; /* count skipped buffer */
60  int unsigned l_inbuf_byrd_cnt; /* count read bytes */
61  int unsigned l_inbuf_proc_cnt; /* count processed buffer */
62  int unsigned l_inbuf_prev_cnt; /* count processed events */
63  /* ----- part of s_client structure -------------------- */
64  /* ----- length is CLNT__INFO_CLIENT ------------------- */
65  int unsigned l_clntoutbuf_sdev; /* sent events */
66  int unsigned l_clntoutbuf_sdby; /* sent bytes */
67  int unsigned l_clntoutbuf_sdbf; /* sent buffer */
68  int unsigned l_clntoutbuf_prev; /* processed evt since con */
69  int unsigned l_clntoutbuf_fltm; /* filter matched on evt */
70  /* ----------------------------------------------------------------- */
72  };
73 
74 #endif
unsigned int l_endian
Definition: s_clntbuf.h:40
unsigned int l_testbit
Definition: s_clntbuf.h:39
int unsigned l_inbuf_read_cnt
Definition: s_clntbuf.h:57
int l_dlen
Definition: s_clntbuf.h:43
int l_free
Definition: s_clntbuf.h:44
int unsigned l_clntoutbuf_prev
Definition: s_clntbuf.h:68
#define CLNT__MSGLEN
Definition: clnt_buf_def.h:57
int unsigned l_inbuf_skip_cnt
Definition: s_clntbuf.h:59
int unsigned l_clntoutbuf_sdev
Definition: s_clntbuf.h:65
int l_events
Definition: s_clntbuf.h:45
int unsigned l_inbuf_proc_cnt
Definition: s_clntbuf.h:61
int unsigned l_msgtyp
Definition: s_clntbuf.h:53
int unsigned l_inbuf_prev_cnt
Definition: s_clntbuf.h:62
int unsigned l_clntoutbuf_sdbf
Definition: s_clntbuf.h:67
int unsigned l_clntoutbuf_sdby
Definition: s_clntbuf.h:66
char c_message[CLNT__MSGLEN]
Definition: s_clntbuf.h:54
int l_numbuftosnd
Definition: s_clntbuf.h:48
int unsigned l_buffertype
Definition: s_clntbuf.h:50
int unsigned l_inbuf_rdok_cnt
Definition: s_clntbuf.h:58
int l_bytestosnd
Definition: s_clntbuf.h:47
#define GPS__OUTBUFSIZ
Definition: gps_sc_def.h:32
int unsigned l_clntoutbuf_fltm
Definition: s_clntbuf.h:69
int unsigned l_inbuf_byrd_cnt
Definition: s_clntbuf.h:60
int l_client_con
Definition: s_clntbuf.h:49
int l_maxbufsiz
Definition: s_clntbuf.h:46
char c_buffer[GPS__OUTBUFSIZ]
Definition: s_clntbuf.h:71