Belle II Software development
IOInfo.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#ifndef _Belle2_IOInfo_h
9#define _Belle2_IOInfo_h
10
11#include <vector>
12
13namespace Belle2 {
19 class IOInfo {
20 public:
21 static int checkTCP(std::vector<IOInfo>& info);
22 static int checkTCP(IOInfo& info);
23
24 public:
25 IOInfo() {}
26 ~IOInfo() {}
27
28 public:
29 const char* getLocalIP() const;
30 unsigned int getLocalAddress() const { return m_local_addr; }
31 int getLocalPort() const { return m_local_port; }
32 const char* getRemoteIP() const;
33 unsigned int getRemoteAddress() const { return m_remote_addr; }
34 int getRemotePort() const { return m_remote_port; }
35 int getState() const { return m_state; }
36 int getTXQueue() const { return m_tx_queue; }
37 int getRXQueue() const { return m_rx_queue; }
38 void setLocalAddress(unsigned int addr) { m_local_addr = addr; }
39 void setLocalPort(int port) { m_local_port = port; }
40 void setRemoteAddress(unsigned int addr) { m_remote_addr = addr; }
41 void setRemotePort(int port) { m_remote_port = port; }
42 void setState(int state) { m_state = state; }
43 void setTXQueue(int queue) { m_tx_queue = queue; }
44 void setRXQueue(int queue) { m_rx_queue = queue; }
45
46 private:
47 unsigned int m_local_addr;
48 int m_local_port;
49 unsigned int m_remote_addr;
50 int m_remote_port;
51 int m_state;
52 int m_tx_queue;
53 int m_rx_queue;
54
55 };
56
58}
59
60#endif
Abstract base class for different kinds of events.