8#ifndef _Belle2_IOInfo_h
9#define _Belle2_IOInfo_h
21 static int checkTCP(std::vector<IOInfo>& info);
22 static int checkTCP(
IOInfo& info);
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; }
47 unsigned int m_local_addr;
49 unsigned int m_remote_addr;
Abstract base class for different kinds of events.