INET Framework for OMNeT++/OMNEST
inet::EthernetSocketTable::Socket Struct Reference

#include <EthernetSocketTable.h>

Public Member Functions

 Socket (int socketId)
 

Public Attributes

int socketId = -1
 
MacAddress localAddress
 
MacAddress remoteAddress
 
const Protocolprotocol = nullptr
 
bool steal = false
 

Friends

std::ostream & operator<< (std::ostream &o, const Socket &t)
 

Constructor & Destructor Documentation

◆ Socket()

inet::EthernetSocketTable::Socket::Socket ( int  socketId)
inline
26 : socketId(socketId) {}

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const Socket t 
)
friend
17 {
18  os << "(id:" << socket.socketId << ", local:" << socket.localAddress << ",remote:" << socket.remoteAddress
19  << ", prot:" << (socket.protocol ? socket.protocol->getName() : "-") << ")";
20  return os;
21 }

Member Data Documentation

◆ localAddress

MacAddress inet::EthernetSocketTable::Socket::localAddress

◆ protocol

const Protocol* inet::EthernetSocketTable::Socket::protocol = nullptr

◆ remoteAddress

MacAddress inet::EthernetSocketTable::Socket::remoteAddress

◆ socketId

int inet::EthernetSocketTable::Socket::socketId = -1

Referenced by inet::operator<<().

◆ steal

bool inet::EthernetSocketTable::Socket::steal = false

The documentation for this struct was generated from the following file:
inet::EthernetSocketTable::Socket::socketId
int socketId
Definition: EthernetSocketTable.h:20