00001 // $Id: s_his_comm.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef S_HIS_COMM 00015 #define S_HIS_COMM 00016 00017 #include "typedefs.h" 00018 00019 #define COMM__PORT 6009 00020 #define COMM__GETDIR 1 00021 #define COMM__GETHIST 2 00022 #define COMM__PUTDIR 3 00023 #define COMM__PUTHIST 4 00024 #define COMM__EXIT 5 00025 #define COMM__GETBASE 6 00026 #define COMM__PUTBASE 7 00027 #define COMM__SUCCESS 0 00028 #define COMM__ERROR -1 00029 #define COMM__NOACCESS -2 00030 #define COMM__NOBASE -3 00031 #define COMM__NOSERVER -4 00032 #define COMM__NOHIST -5 00033 00034 /* structure for communication between histogram server and client */ 00035 typedef struct{ 00036 INTU4 lu_endian; /* set = 1 by sender, checked by receiver */ 00037 INTU4 lu_action; /* what to do, defined by COM__xxx */ 00038 INTU4 lu_histos; /* returned number of histograms */ 00039 INTU4 lu_size; /* returned number of bytes of following buffer */ 00040 INTS4 l_status; /* completion status, COMM_xxx */ 00041 CHARS c_access[32]; /* password depending on server */ 00042 CHARS c_base[32]; /* base name depending on server */ 00043 CHARS c_histo[64]; /* histogram name */ 00044 }s_his_comm; 00045 00046 #endif