OverSim
SimpleUDP.cc File Reference
#include <omnetpp.h>
#include <CommonMessages_m.h>
#include <GlobalNodeListAccess.h>
#include <GlobalStatisticsAccess.h>
#include <SimpleInfo.h>
#include "UDPPacket.h"
#include "SimpleUDP.h"
#include "IPControlInfo.h"
#include "IPv6ControlInfo.h"
#include "IPAddressResolver.h"
#include "IPDatagram_m.h"
#include "IPv6Datagram_m.h"
#include "ICMPMessage_m.h"
#include "ICMPv6Message_m.h"

Go to the source code of this file.

Macros

#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)

Detailed Description

Author
Jochen Reber

Definition in file SimpleUDP.cc.

Macro Definition Documentation

#define EPHEMERAL_PORTRANGE_END   5000

Definition at line 53 of file SimpleUDP.cc.

#define EPHEMERAL_PORTRANGE_START   1024

Definition at line 52 of file SimpleUDP.cc.

Referenced by SimpleUDP::initialize().

Function Documentation

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

Definition at line 62 of file SimpleUDP.cc.

{
os << "sockId=" << sd.sockId;
os << " appGateIndex=" << sd.appGateIndex;
os << " userId=" << sd.userId;
os << " localPort=" << sd.localPort;
if (sd.remotePort!=0)
os << " remotePort=" << sd.remotePort;
if (!sd.localAddr.isUnspecified())
os << " localAddr=" << sd.localAddr;
if (!sd.remoteAddr.isUnspecified())
os << " remoteAddr=" << sd.remoteAddr;
if (sd.interfaceId!=-1)
os << " interfaceId=" << sd.interfaceId;
return os;
}
static std::ostream& operator<< ( std::ostream &  os,
const SimpleUDP::SockDescList &  list 
)
static

Definition at line 81 of file SimpleUDP.cc.

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