GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
s_his_comm.h
Go to the documentation of this file.
1 // $Id: s_his_comm.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 #ifndef S_HIS_COMM
15 #define S_HIS_COMM
16 
17 #include "typedefs.h"
18 
19 #define COMM__PORT 6009
20 #define COMM__GETDIR 1
21 #define COMM__GETHIST 2
22 #define COMM__PUTDIR 3
23 #define COMM__PUTHIST 4
24 #define COMM__EXIT 5
25 #define COMM__GETBASE 6
26 #define COMM__PUTBASE 7
27 #define COMM__SUCCESS 0
28 #define COMM__ERROR -1
29 #define COMM__NOACCESS -2
30 #define COMM__NOBASE -3
31 #define COMM__NOSERVER -4
32 #define COMM__NOHIST -5
33 
34 /* structure for communication between histogram server and client */
35 typedef struct{
36 INTU4 lu_endian; /* set = 1 by sender, checked by receiver */
37 INTU4 lu_action; /* what to do, defined by COM__xxx */
38 INTU4 lu_histos; /* returned number of histograms */
39 INTU4 lu_size; /* returned number of bytes of following buffer */
40 INTS4 l_status; /* completion status, COMM_xxx */
41 CHARS c_access[32]; /* password depending on server */
42 CHARS c_base[32]; /* base name depending on server */
43 CHARS c_histo[64]; /* histogram name */
44 }s_his_comm;
45 
46 #endif
INTU4 lu_action
Definition: s_his_comm.h:37
INTU4 lu_histos
Definition: s_his_comm.h:38
INTU4 lu_endian
Definition: s_his_comm.h:36
unsigned int INTU4
Definition: typedefs.h:29
INTU4 lu_size
Definition: s_his_comm.h:39
int INTS4
Definition: typedefs.h:28
INTS4 l_status
Definition: s_his_comm.h:40
char CHARS
Definition: typedefs.h:21