00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 /*************************************************************************/ 00017 /* +++ GSI Darmstadt +++ */ 00018 /* +++ +++ */ 00019 /*************************************************************************/ 00020 /*+File name S_CLNTBUF.H */ 00021 /* */ 00022 /*************************************************************************/ 00023 /*+ Update Date Purpose */ 00024 /*- 10-Dec-1993 : Define testbit and low or high endian */ 00025 /* and some types changed and 2LW added */ 00026 /*- 27-Jan-1994 : CLNT_BUFH_LW changed to 11 (RSM) */ 00027 /*- 02-Feb-1994 : definitions in CLNT_BUF_DEF.H , */ 00028 /* def. names changed. (RSM) */ 00029 /*************************************************************************/ 00030 00031 /* RSM 19-MAR-1993 */ 00032 /* is a part of s_clntoutbuf */ 00033 00034 struct s_clntbuf 00035 { 00036 /* ------ first part of s_clntoutbuf omitted ----------- */ 00037 /* --- control byte ordering and machine type (2LW) ---- */ 00038 unsigned int l_testbit; /* bit pattern */ 00039 unsigned int l_endian; /* endian of sender */ 00040 /* ----------------------------------------------------- */ 00041 /* ----- length is CLNT__BUFHEAD ----------------------- */ 00042 int l_dlen; /* data length [bytes] */ 00043 int l_free; /* free length [bytes] */ 00044 int l_events; /* events in buffer */ 00045 int l_maxbufsiz; /* maximum buffer size */ 00046 int l_bytestosnd; /* sent bytes */ 00047 int l_numbuftosnd; /* number of buffers to send */ 00048 int l_client_con; /* currently connect clients */ 00049 int unsigned l_buffertype; /* type: data:1 msg:2 flush:4 */ 00050 /* last:8 1stBUF:16 */ 00051 /* (inclusive) (mask) */ 00052 int unsigned l_msgtyp; /* I:1 W:2 E:4 F:8 (exclusive)*/ 00053 char c_message[CLNT__MSGLEN]; /* error msg and other */ 00054 /* ----- part of s_control structure ------------------- */ 00055 /* ----- length is CLNT__INFO_CONTROL ------------------ */ 00056 int unsigned l_inbuf_read_cnt; /* count read buffer */ 00057 int unsigned l_inbuf_rdok_cnt; /* count read buffer that are o.k */ 00058 int unsigned l_inbuf_skip_cnt; /* count skipped buffer */ 00059 int unsigned l_inbuf_byrd_cnt; /* count read bytes */ 00060 int unsigned l_inbuf_proc_cnt; /* count processed buffer */ 00061 int unsigned l_inbuf_prev_cnt; /* count processed events */ 00062 /* ----- part of s_client structure -------------------- */ 00063 /* ----- length is CLNT__INFO_CLIENT ------------------- */ 00064 int unsigned l_clntoutbuf_sdev; /* sent events */ 00065 int unsigned l_clntoutbuf_sdby; /* sent bytes */ 00066 int unsigned l_clntoutbuf_sdbf; /* sent buffer */ 00067 int unsigned l_clntoutbuf_prev; /* processed evt since con */ 00068 int unsigned l_clntoutbuf_fltm; /* filter matched on evt */ 00069 /* ----------------------------------------------------------------- */ 00070 char c_buffer[GPS__OUTBUFSIZ]; 00071 }; 00072 00073 //----------------------------END OF GO4 SOURCE FILE ---------------------