Belle II Software  release-05-02-19
IOInfo.h
1 #ifndef _Belle2_IOInfo_h
2 #define _Belle2_IOInfo_h
3 
4 #include <vector>
5 
6 namespace Belle2 {
12  class IOInfo {
13  public:
14  static int checkTCP(std::vector<IOInfo>& info);
15  static int checkTCP(IOInfo& info);
16 
17  public:
18  IOInfo() {}
19  ~IOInfo() {}
20 
21  public:
22  const char* getLocalIP() const;
23  unsigned int getLocalAddress() const { return m_local_addr; }
24  int getLocalPort() const { return m_local_port; }
25  const char* getRemoteIP() const;
26  unsigned int getRemoteAddress() const { return m_remote_addr; }
27  int getRemotePort() const { return m_remote_port; }
28  int getState() const { return m_state; }
29  int getTXQueue() const { return m_tx_queue; }
30  int getRXQueue() const { return m_rx_queue; }
31  void setLocalAddress(unsigned int addr) { m_local_addr = addr; }
32  void setLocalPort(int port) { m_local_port = port; }
33  void setRemoteAddress(unsigned int addr) { m_remote_addr = addr; }
34  void setRemotePort(int port) { m_remote_port = port; }
35  void setState(int state) { m_state = state; }
36  void setTXQueue(int queue) { m_tx_queue = queue; }
37  void setRXQueue(int queue) { m_rx_queue = queue; }
38 
39  private:
40  unsigned int m_local_addr;
41  int m_local_port;
42  unsigned int m_remote_addr;
43  int m_remote_port;
44  int m_state;
45  int m_tx_queue;
46  int m_rx_queue;
47 
48  };
49 
51 }
52 
53 #endif
Belle2::IOInfo
Definition: IOInfo.h:12
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19