SimpleUDP.cc File Reference

#include <omnetpp.h>
#include <CommonMessages_m.h>
#include <GlobalNodeListAccess.h>
#include <GlobalStatisticsAccess.h>
#include <SimpleInfo.h>
#include "SimpleUDPPacket.h"
#include "SimpleUDPPacket_m.h"
#include "SimpleUDP.h"
#include "IPControlInfo.h"
#include "IPv6ControlInfo.h"
#include "ICMPAccess.h"
#include "ICMPv6Access.h"
#include "IPAddressResolver.h"
#include "ICMPMessage_m.h"
#include "ICMPv6Message_m.h"
#include "IPDatagram_m.h"
#include "IPv6Datagram_m.h"

Go to the source code of this file.

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)

Detailed Description

Author:
Jochen Reber

Definition in file SimpleUDP.cc.


Define Documentation

#define EPHEMERAL_PORTRANGE_END   5000

Definition at line 54 of file SimpleUDP.cc.

Referenced by SimpleUDP::getEphemeralPort().

#define EPHEMERAL_PORTRANGE_START   1024

Definition at line 53 of file SimpleUDP.cc.

Referenced by SimpleUDP::getEphemeralPort(), and SimpleUDP::initialize().


Function Documentation

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

Definition at line 81 of file SimpleUDP.cc.

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

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

Definition at line 62 of file SimpleUDP.cc.

00064 {
00065     os << "sockId=" << sd.sockId;
00066     os << " appGateIndex=" << sd.appGateIndex;
00067     os << " userId=" << sd.userId;
00068     os << " localPort=" << sd.localPort;
00069     if (sd.remotePort!=0)
00070         os << " remotePort=" << sd.remotePort;
00071     if (!sd.localAddr.isUnspecified())
00072         os << " localAddr=" << sd.localAddr;
00073     if (!sd.remoteAddr.isUnspecified())
00074         os << " remoteAddr=" << sd.remoteAddr;
00075     if (sd.interfaceId!=-1)
00076         os << " interfaceId=" << sd.interfaceId;
00077 
00078     return os;
00079 }

Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3