IPAddress.h File Reference

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

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]

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

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

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

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

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

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

00254 {
00255     return os << ip.str();
00256 }


Variable Documentation

const short PORT_MAX = 0x7fff

const short PORT_UNDEF = 0


Generated on Fri Mar 20 18:51:17 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5