GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
s_his_comm.h
Go to the documentation of this file.
1// $Id$
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#ifndef S_HIS_COMM_H
15#define S_HIS_COMM_H
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 */
35typedef struct{
36INTU4 lu_endian; /* set = 1 by sender, checked by receiver */
37INTU4 lu_action; /* what to do, defined by COM__xxx */
38INTU4 lu_histos; /* returned number of histograms */
39INTU4 lu_size; /* returned number of bytes of following buffer */
40INTS4 l_status; /* completion status, COMM_xxx */
41CHARS c_access[32]; /* password depending on server */
42CHARS c_base[32]; /* base name depending on server */
43CHARS c_histo[64]; /* histogram name */
45
46#endif
CHARS c_access[32]
Definition s_his_comm.h:41
INTU4 lu_size
Definition s_his_comm.h:39
INTS4 l_status
Definition s_his_comm.h:40
CHARS c_histo[64]
Definition s_his_comm.h:43
INTU4 lu_endian
Definition s_his_comm.h:36
INTU4 lu_histos
Definition s_his_comm.h:38
CHARS c_base[32]
Definition s_his_comm.h:42
INTU4 lu_action
Definition s_his_comm.h:37
int INTS4
Definition typedefs.h:28
unsigned int INTU4
Definition typedefs.h:29
char CHARS
Definition typedefs.h:21