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