ATLAS Offline Software
graphics
JiveXML
JiveXML
ONCRPCServer.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JIVEXML__ONCRPCSERVER_H
6
#define JIVEXML__ONCRPCSERVER_H
7
16
extern
"C"
{
17
#include <rpc/rpc.h>
18
#include <rpc/pmap_clnt.h>
19
}
20
21
#include <math.h>
22
23
//Safeguard external includes
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
namespace
JiveXML
{
29
30
#define ONCRPCSERVERPROG 200048965 //By this number the server is identified
31
#define ONCRPCSERVERVERS 2 //By this number the version of the server is identified
32
#define ONCRPC_GETSTATUS_PROC 1 //This number identifies the procedure returning the current athena status
33
#define ONCRPC_GETSTREAMS_PROC 2 //This number identifies the procedure returning the names of the available streams
34
#define ONCRPC_GETEVENT_PROC 3 //This number identifies the procedure returning an event for a specific stream
35
#define ONCRPC_SETEVENT_PROC 4 //This number identifies the procedure setting a new event for a specific stream
36
37
//Maximum allowed number of streams
38
const
unsigned
int
NSTREAMMAX
= 1024 ;
39
//Maximum allowd number of bytes in one event (2^31 for 4-byte ints)
40
const
unsigned
int
NBYTESMAX
= 0x1
u
<< (
sizeof
(
unsigned
int
)*8 - 1) ;
//2147483648 ;
41
45
typedef
struct
Streams_t
Streams
;
46
struct
Streams_t
{
47
unsigned
int
NStreams
;
48
char
**
StreamNames
;
49
};
50
55
// When requesting an event from a particular stream, the user give the eventID
56
// if the event he already has This avoids duplicate transfer of the same event
57
typedef
struct
EventRequest_t
EventRequest
;
58
struct
EventRequest_t
{
59
int64_t
EventNumber
;
60
int64_t
RunNumber
;
61
const
char
*
StreamName
;
62
};
63
64
// The event return structure, which holds several parameters of the event
65
typedef
struct
Event_t
Event
;
66
struct
Event_t
{
67
bool_t
isAvailable
;
//This flag is set false if no event is available for the requested stream
68
bool_t
isIdentical
;
//This flag is set true if the event is the same as the one the user had asked for
69
bool_t
isCompressed
;
//This flag is set true if the event is compressed
70
const
char
*
StreamName
;
//Then name of the stream of this event
71
int64_t
EventNumber
;
//The event number of the event that is send back
72
int64_t
RunNumber
;
//The run number of the event that is send back
73
unsigned
int
NBytes
;
//Number of bytes in the event data
74
const
char
*
EventData
;
//Address of event data - if there is any
75
};
76
77
}
//namespace
78
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#endif // include guards
84
CaloCellPos2Ntuple.int
int
Definition:
CaloCellPos2Ntuple.py:24
JiveXML::EventRequest_t::RunNumber
int64_t RunNumber
Definition:
ONCRPCServer.h:60
JiveXML::Event_t::EventData
const char * EventData
Definition:
ONCRPCServer.h:74
JiveXML::Streams_t::NStreams
unsigned int NStreams
Definition:
ONCRPCServer.h:47
Trk::u
@ u
Enums for curvilinear frames.
Definition:
ParamDefs.h:77
JiveXML::EventRequest_t::EventNumber
int64_t EventNumber
Definition:
ONCRPCServer.h:59
JiveXML::Streams_t::StreamNames
char ** StreamNames
Definition:
ONCRPCServer.h:48
JiveXML::EventRequest_t
Definition:
ONCRPCServer.h:58
JiveXML::Event_t::StreamName
const char * StreamName
Definition:
ONCRPCServer.h:70
JiveXML::EventRequest_t::StreamName
const char * StreamName
Definition:
ONCRPCServer.h:61
JiveXML::Event_t::isAvailable
bool_t isAvailable
Definition:
ONCRPCServer.h:67
JiveXML::Event_t::NBytes
unsigned int NBytes
Definition:
ONCRPCServer.h:73
JiveXML::NBYTESMAX
const unsigned int NBYTESMAX
Definition:
ONCRPCServer.h:40
JiveXML::Event_t::EventNumber
int64_t EventNumber
Definition:
ONCRPCServer.h:71
JiveXML::Event_t::RunNumber
int64_t RunNumber
Definition:
ONCRPCServer.h:72
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition:
BadLArRetriever.cxx:22
JiveXML::Streams_t
Definition:
ONCRPCServer.h:46
JiveXML::Event_t
Definition:
ONCRPCServer.h:66
JiveXML::Event_t::isCompressed
bool_t isCompressed
Definition:
ONCRPCServer.h:69
JiveXML::Event_t::isIdentical
bool_t isIdentical
Definition:
ONCRPCServer.h:68
JiveXML::NSTREAMMAX
const unsigned int NSTREAMMAX
Definition:
ONCRPCServer.h:38
Generated on Thu Nov 7 2024 21:23:02 for ATLAS Offline Software by
1.8.18