SimpleUDP.cc File Reference

#include <omnetpp.h>
#include <string.h>
#include "SimpleUDPPacket.h"
#include "SimpleUDP.h"
#include "IPControlInfo.h"
#include "IPv6ControlInfo.h"
#include "ICMPAccess.h"
#include "ICMPv6Access.h"
#include "ICMPMessage_m.h"
#include "ICMPv6Message_m.h"
#include "IPDatagram_m.h"
#include "IPv6Datagram_m.h"

Defines

#define EPHEMERAL_PORTRANGE_START   1024
#define EPHEMERAL_PORTRANGE_END   5000

Functions

 Define_Module (SimpleUDP)
static std::ostream & operator<< (std::ostream &os, const SimpleUDP::SockDesc &sd)
static std::ostream & operator<< (std::ostream &os, const SimpleUDP::SockDescList &list)


Define Documentation

#define EPHEMERAL_PORTRANGE_END   5000

#define EPHEMERAL_PORTRANGE_START   1024


Function Documentation

Define_Module ( SimpleUDP   ) 

static std::ostream& operator<< ( std::ostream &  os,
const SimpleUDP::SockDescList list 
) [static]

00070 {
00071     for (SimpleUDP::SockDescList::const_iterator i=list.begin();
00072          i!=list.end(); ++i)
00073         os << "sockId=" << (*i)->sockId << " ";
00074     return os;
00075 }

static std::ostream& operator<< ( std::ostream &  os,
const SimpleUDP::SockDesc sd 
) [static]

00051 {
00052     os << "sockId=" << sd.sockId;
00053     os << " appGateIndex=" << sd.appGateIndex;
00054     os << " userId=" << sd.userId;
00055     os << " localPort=" << sd.localPort;
00056     if (sd.remotePort!=0)
00057         os << " remotePort=" << sd.remotePort;
00058     if (!sd.localAddr.isUnspecified())
00059         os << " localAddr=" << sd.localAddr;
00060     if (!sd.remoteAddr.isUnspecified())
00061         os << " remoteAddr=" << sd.remoteAddr;
00062     if (sd.interfaceId!=-1)
00063         os << " interfaceId=" << sd.interfaceId;
00064 
00065     return os;
00066 }


Generated on Fri May 11 14:52:39 2007 for ITM OverSim by  doxygen 1.4.7