#include "IPAddress.h"
#include "RTPApplication.h"
#include "RTPInterfacePacket.h"
Functions | |
Define_Module (RTPApplication) void RTPApplication |
Define_Module | ( | RTPApplication | ) |
00025 { 00026 00027 // read all omnet parameters 00028 00029 // the common name (CNAME) of this host 00030 _commonName = par("commonName"); 00031 00032 // which rtp profile is to be used (usually RTPAVProfile) 00033 _profileName = par("profileName"); 00034 00035 // bandwidth in bytes per second for this session 00036 _bandwidth = par("bandwidth"); 00037 00038 // the ip address to connect to (unicast or multicast) 00039 _destinationAddress = IPAddress(par("destinationAddress").stringValue()); 00040 00041 // port number which is to be used; to ports are actually used: one 00042 // for rtp and one for rtcp 00043 _port = (int)par("portNumber").longValue(); 00044 00045 // fileName of file to be transmitted 00046 // NULL or "" means this system acts only as a receiver 00047 _fileName = par("fileName"); 00048 00049 // payload type of file to transmit 00050 _payloadType = par("payloadType"); 00051 00052 _sessionEnterDelay = par("sessionEnterDelay"); 00053 _transmissionStartDelay = par("transmissionStartDelay"); 00054 _transmissionStopDelay = par("transmissionStopDelay"); 00055 _sessionLeaveDelay = par("sessionLeaveDelay"); 00056 00057 ev<< "commonName" << _commonName <<endl; 00058 ev<< "profileName" << _profileName <<endl; 00059 ev<< "bandwidth" << _bandwidth <<endl; 00060 ev<< "destinationAddress" << _destinationAddress <<endl; 00061 ev<< "portNumber" << _port <<endl; 00062 ev<< "fileName" << _fileName <<endl; 00063 ev<< "payloadType" << _payloadType <<endl; 00064 }