]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STORAGE/AliStorageTypes.h
remove unnecessary if already effective before, move it out of the method call
[u/mrichter/AliRoot.git] / STORAGE / AliStorageTypes.h
1 #ifndef AliStorageTypes_H
2 #define AliStorageTypes_H
3
4 //sockets
5 const int gServerCommunicationPort = 5066;
6 const int gEventsSubscriberPort = 5024;
7 const int gClientCommunicationPort = 5088;
8 const int gClientPublisherPort = 5077;
9
10 enum statusType{
11         STATUS_WAITING=1,
12         STATUS_OK,
13         STATUS_ERROR,
14         STATUS_DOWN
15 };
16
17 enum requestType{
18         REQUEST_CONNECTION=1,
19         REQUEST_RECEIVING,
20         REQUEST_SAVING,
21         REQUEST_CURRENT_SIZE,
22         REQUEST_LIST_EVENTS,
23         REQUEST_GET_EVENT,
24         REQUEST_GET_NEXT_EVENT,
25         REQUEST_GET_LAST_EVENT,
26         REQUEST_MARK_EVENT,
27         REQUEST_SET_PARAMS,
28         REQUEST_GET_PARAMS
29 };
30
31 struct clientRequestStruct{
32         int messageType;
33         int maxStorageSize;
34         int maxOccupation;
35         int removeEvents;
36         int eventsInChunk;
37 };
38
39 struct eventStruct{
40         int runNumber;
41         int eventNumber;
42 };
43
44 struct listRequestStruct{
45         int runNumber[2];
46         int eventNumber[2];
47         int marked[2];
48         int multiplicity[2];
49         char system[2][20];
50 };
51
52 struct serverRequestStruct{
53         int messageType;
54         struct eventStruct event;
55         struct listRequestStruct list;
56 };
57
58 typedef struct serverListStruct{
59         int runNumber;
60         int eventNumber;
61         char system[20];
62         int multiplicity;
63         int marked;
64 }serverListStruct;
65
66 #endif