INET Framework for OMNeT++/OMNEST
TCP_NSC_Connection::SockAddr Class Reference

#include <TCP_NSC_Connection.h>

List of all members.

Public Member Functions

 SockAddr ()
bool operator< (const SockAddr &b) const
bool operator== (const SockAddr &b) const

Public Attributes

IPvXAddress ipAddrM
unsigned short portM

Constructor & Destructor Documentation

TCP_NSC_Connection::SockAddr::SockAddr ( ) [inline]
: ipAddrM(),portM(-1) {}

Member Function Documentation

bool TCP_NSC_Connection::SockAddr::operator< ( const SockAddr b) const [inline]
        {
            if (ipAddrM == b.ipAddrM)
                return portM < b.portM;
            return ipAddrM < b.ipAddrM;
        }
bool TCP_NSC_Connection::SockAddr::operator== ( const SockAddr b) const [inline]
        {
            return (ipAddrM == b.ipAddrM) && (portM == b.portM);
        }

Member Data Documentation

Referenced by operator<(), and operator==().


The documentation for this class was generated from the following file: