Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eventReceiverClient.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file eventReceiverClient.h
1 #ifndef __EVENTRECEIVERCLIENT_H__
2 #define __EVENTRECEIVERCLIENT_H__
3 
4 
5 #include <string>
6 #include <netinet/in.h>
7 
8 
9 class Event;
10 
12 {
13  public:
14  eventReceiverClient( const std::string hostname, const int flags=0);
16 
17  Event *getEvent(const int eventnumber, const int flag = 0);
18  void setVerbosity(const int v) { _verbosity = v;};
19  int getVerbosity() const { return _verbosity;};
20  int getStatus() const { return _broken;};
21 
22  protected:
23 
24  int _sockfd;
25  int _flags;
26  int _broken;
28 
30  struct sockaddr_in _serveraddr;
31 
32  struct hostent *_phost;
33 
34 
35 
36 };
37 
38 #endif