FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ptrevcomm.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 /*********************************************************************
9  * Copyright:
10  * GSI, Gesellschaft fuer Schwerionenforschung mbH
11  * Planckstr. 1
12  * D-64291 Darmstadt
13  * Germany
14  *********************************************************************
15  * ptrevcomm.h
16  * communication structures
17  * multi-threaded remote event server <-> ROOT clients
18  * created 2. 2.99, Horst Goeringer
19  *********************************************************************
20  * 23. 3.1999, H.G.: srevInfo added
21  * 26. 7.1999, H.G.: sptrevDummy added
22  * 10.11.1999, H.G.: iIdent in srevComm added
23  *********************************************************************
24  */
25 
26 /* client requests events from server */
27 typedef struct
28 {
29  int iSize; /* size of comm. buffer without this element (bytes) */
30  int iMode; /* must be 1: client requests data */
31  int iIdent; /* =1: NOT IN NET REPR. to identify client endian type */
32  int iBufRequ; /* number of buffers requested */
33 } srevComm;
34 
35 /* server sends info to client */
36 typedef struct
37 {
38  int iSize; /* size of info buffer without this element (bytes) */
39  int iMode; /* must be 1: server sends info */
40  /* else: client tries swap */
41  int iHeadPar; /* no. of header parms in buffer */
42  int iTimeOut; /* wait time client after CTL C */
43 } srevInfo;
44 
45 /* server sends dummy buffer to client, if no DAQ events available */
46 typedef struct
47 {
48  int iSize; /* size of data following */
49  int iBufNo; /* current buffer number */
50  int iEvtNo; /* no. of events in buffer (= 0) */
51 } sptrevDummy;
int iMode
Definition: ptrevcomm.h:30
int iSize
Definition: ptrevcomm.h:38
int iBufRequ
Definition: ptrevcomm.h:32
int iIdent
Definition: ptrevcomm.h:31
int iHeadPar
Definition: ptrevcomm.h:41
int iMode
Definition: ptrevcomm.h:39
int iTimeOut
Definition: ptrevcomm.h:42
int iBufNo
Definition: ptrevcomm.h:49
int iEvtNo
Definition: ptrevcomm.h:50
int iSize
Definition: ptrevcomm.h:29