INET Framework for OMNeT++/OMNEST
portTable.h File Reference
#include <omnetpp.h>
#include <vector>

Go to the source code of this file.

Classes

class  PortTable
struct  PortTable::s_port

Functions

std::ostream & operator<< (std::ostream &os, const PortTable::tPortState s)
std::ostream & operator<< (std::ostream &os, const PortTable::tPort p)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PortTable::tPortState  s 
) [inline]

Definition at line 67 of file portTable.h.

                                                                           {

        switch (s){
        case PortTable::OFF:
                os << "OFF";
                break;
        case PortTable::BLOCKING:
                os << "BLOCKING";
                break;
        case PortTable::DISCARTING:
                os << "DISCARTING";
                break;
        case PortTable::LEARNING:
                os << "LEARNING";
                break;
        case PortTable::FORWARDING:
                os << "FORWARDING";
                break;
        default:
                os << "<???>";
                break;
        }

        return os;
}
std::ostream& operator<< ( std::ostream &  os,
const PortTable::tPort  p 
) [inline]

Definition at line 93 of file portTable.h.

                                                                      {
        os << "PortState: " << p.state;
        return os;
}