Classes | Functions | Variables

IPAddress.h File Reference

#include <omnetpp.h>
#include <iostream>
#include <string>
#include "INETDefs.h"

Go to the source code of this file.

Classes

class  IPAddress

Functions

std::ostream & operator<< (std::ostream &os, const IPAddress &ip)
void doPacking (cCommBuffer *buf, const IPAddress &addr)
void doUnpacking (cCommBuffer *buf, IPAddress &addr)

Variables

const short PORT_UNDEF = 0
const short PORT_MAX = 0x7fff

Function Documentation

void doPacking ( cCommBuffer *  buf,
const IPAddress addr 
) [inline]

Definition at line 258 of file IPAddress.h.

Referenced by doPacking(), and TCPSegment::parsimPack().

{
    buf->pack(addr.getInt());
}

void doUnpacking ( cCommBuffer *  buf,
IPAddress addr 
) [inline]

Definition at line 263 of file IPAddress.h.

Referenced by doUnpacking(), and TCPSegment::parsimUnpack().

{
    int32 d; buf->unpack(d); addr.set(d);
}

std::ostream& operator<< ( std::ostream &  os,
const IPAddress ip 
) [inline]

Definition at line 253 of file IPAddress.h.

{
    return os << ip.str();
}


Variable Documentation

const short PORT_MAX = 0x7fff

Definition at line 39 of file IPAddress.h.

const short PORT_UNDEF = 0