1 #ifndef _Belle2_IOInfo_h
2 #define _Belle2_IOInfo_h
14 static int checkTCP(std::vector<IOInfo>& info);
15 static int checkTCP(
IOInfo& info);
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; }
40 unsigned int m_local_addr;
42 unsigned int m_remote_addr;