INET Framework for OMNeT++/OMNEST
INETDefs.h File Reference

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 

Macros

#define INET_VERSION   0x0306
 
#define INET_PATCH_LEVEL   0x00
 
#define INET_API
 
#define SPEED_OF_LIGHT   299792458.0
 
#define RNGCONTEXT   (cSimulation::getActiveSimulation()->getContext())->
 
#define FINGERPRINT_ADD_EXTRA_DATA(x)   { if (cFingerprintCalculator *fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x); }
 
#define FINGERPRINT_ADD_EXTRA_DATA2(x, y)   { if (cFingerprintCalculator *fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x, y); }
 
#define CHK(x)   __checknull((x), #x, __FILE__, __LINE__)
 
#define PK(msg)   check_and_cast<cPacket *>(msg) /*XXX temp def*/
 
#define TIME(CODE)   { long startTime = clock(); CODE; printElapsedTime( #CODE, startTime); }
 

Typedefs

typedef unsigned short inet::ushort
 
typedef unsigned int inet::uint
 
typedef unsigned long inet::ulong
 

Functions

template<class T >
T * inet::__checknull (T *p, const char *expr, const char *file, int line)
 
void inet::printElapsedTime (const char *name, long startTime)
 

Macro Definition Documentation

#define CHK (   x)    __checknull((x), #x, __FILE__, __LINE__)
#define FINGERPRINT_ADD_EXTRA_DATA (   x)    { if (cFingerprintCalculator *fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x); }
#define FINGERPRINT_ADD_EXTRA_DATA2 (   x,
 
)    { if (cFingerprintCalculator *fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x, y); }
#define INET_API
#define INET_PATCH_LEVEL   0x00
#define INET_VERSION   0x0306
#define PK (   msg)    check_and_cast<cPacket *>(msg) /*XXX temp def*/

Referenced by inet::Sink::handleMessage(), inet::TCPSinkApp::handleMessage(), inet::EtherMACFullDuplex::handleMessage(), inet::TCPDump::handleMessage(), inet::AbstractQueue::handleMessage(), inet::EtherEncap::handleMessage(), inet::ieee80211::Ieee80211MgmtBase::handleMessage(), inet::Loopback::handleMessage(), inet::ThruputMeter::handleMessage(), inet::EtherLLC::handleMessage(), inet::IPvXTrafGen::handleMessage(), inet::PacketDrillApp::handleMessage(), inet::PPP::handleMessage(), inet::SCTPServer::handleMessage(), inet::SCTPNatPeer::handleMessage(), inet::SCTPPeer::handleMessage(), inet::UDP::handleMessage(), inet::IPv4::handleMessage(), inet::rtp::RTCP::handleMessageFromUDP(), inet::LayeredProtocolBase::handleMessageWhenUp(), inet::UDPEchoApp::handleMessageWhenUp(), inet::UDPVideoStreamCli::handleMessageWhenUp(), inet::UDPSink::handleMessageWhenUp(), inet::UDPBasicApp::handleMessageWhenUp(), inet::UDPBasicBurst::handleMessageWhenUp(), inet::SCTPPeer::handleTimer(), inet::tcp::TCPConnection::process_SEND(), inet::sctp::SCTPAssociation::process_SEND(), inet::sctp::SCTPAssociation::processAddInAndOutResetRequestArrived(), inet::SCTPSocket::processMessage(), inet::TCPSocket::processMessage(), inet::sctp::SCTPAssociation::processOutAndResponseArrived(), inet::sctp::SCTPAssociation::processOutgoingResetRequestArrived(), inet::sctp::SCTPAssociation::processResetResponseArrived(), inet::sctp::SCTPAssociation::sendAddInAndOutStreamsRequest(), inet::sctp::SCTPAssociation::sendAddOutgoingStreamsRequest(), inet::sctp::SCTPAssociation::sendBundledOutgoingResetAndResponse(), inet::SCTPNatServer::sendInfo(), inet::sctp::SCTPAssociation::sendOutgoingRequestAndResponse(), inet::sctp::SCTPAssociation::sendOutgoingResetRequest(), inet::sctp::SCTPAssociation::sendStreamResetRequest(), and inet::PacketDrillApp::syscallRecvFrom().