#include "IPAddress.h"
#include "RTPApplication.h"
#include "RTPInterfacePacket.h"
Go to the source code of this file.
Functions | |
Define_Module (RTPApplication) void RTPApplication |
Define_Module | ( | RTPApplication | ) |
Definition at line 22 of file RTPApplication.cc.
{ // read all omnet parameters // the common name (CNAME) of this host _commonName = par("commonName"); // which rtp profile is to be used (usually RTPAVProfile) _profileName = par("profileName"); // bandwidth in bytes per second for this session _bandwidth = par("bandwidth"); // the ip address to connect to (unicast or multicast) _destinationAddress = IPAddress(par("destinationAddress").stringValue()); // port number which is to be used; to ports are actually used: one // for rtp and one for rtcp _port = (int)par("portNumber").longValue(); // fileName of file to be transmitted // NULL or "" means this system acts only as a receiver _fileName = par("fileName"); // payload type of file to transmit _payloadType = par("payloadType"); _sessionEnterDelay = par("sessionEnterDelay"); _transmissionStartDelay = par("transmissionStartDelay"); _transmissionStopDelay = par("transmissionStopDelay"); _sessionLeaveDelay = par("sessionLeaveDelay"); ev<< "commonName" << _commonName <<endl; ev<< "profileName" << _profileName <<endl; ev<< "bandwidth" << _bandwidth <<endl; ev<< "destinationAddress" << _destinationAddress <<endl; ev<< "portNumber" << _port <<endl; ev<< "fileName" << _fileName <<endl; ev<< "payloadType" << _payloadType <<endl; }