INET Framework for OMNeT++/OMNEST
|
Implements a simple VoIP source. More...
#include <SimpleVoIPSender.h>
Public Member Functions | |
virtual | ~SimpleVoIPSender () |
SimpleVoIPSender () | |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Member Functions | |
void | talkspurt (simtime_t dur) |
void | selectTalkOrSilenceInterval () |
void | sendVoIPPacket () |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
virtual void | handleMessage (cMessage *msg) override |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
Private Attributes | |
UDPSocket | socket |
simtime_t | stopTime |
simtime_t | packetizationInterval |
int | localPort = -1 |
int | destPort = -1 |
int | talkPacketSize = 0 |
L3Address | destAddress |
cMessage * | selfSender = nullptr |
cMessage * | selfSource = nullptr |
simtime_t | silenceDuration |
simtime_t | talkspurtDuration |
int | packetID = -1 |
int | talkspurtID = -1 |
int | talkspurtNumPackets = 0 |
bool | isTalk = false |
Implements a simple VoIP source.
See the NED file for more information.
|
virtual |
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
Perform one stage of a lifecycle operation.
Processing may be done entirely within this method, or may be a longer process that involves nonzero simulation time or several events, and is triggered by this method call.
Return value: true = "done"; false = "not yet done, will invoke doneCallback when done"
Implements inet::ILifecycle.
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
protected |
Referenced by handleMessage().
|
protected |
Referenced by handleMessage().
|
protected |
Referenced by selectTalkOrSilenceInterval().
|
private |
Referenced by sendVoIPPacket().
|
private |
Referenced by initialize(), and sendVoIPPacket().
|
private |
Referenced by initialize(), and selectTalkOrSilenceInterval().
|
private |
Referenced by initialize().
|
private |
Referenced by initialize(), sendVoIPPacket(), and talkspurt().
|
private |
Referenced by initialize(), sendVoIPPacket(), and talkspurt().
|
private |
Referenced by handleMessage(), initialize(), sendVoIPPacket(), talkspurt(), and ~SimpleVoIPSender().
|
private |
Referenced by initialize(), selectTalkOrSilenceInterval(), and ~SimpleVoIPSender().
|
private |
Referenced by initialize(), and selectTalkOrSilenceInterval().
|
private |
Referenced by initialize(), and sendVoIPPacket().
|
private |
Referenced by initialize(), and selectTalkOrSilenceInterval().
|
private |
Referenced by initialize(), and sendVoIPPacket().
|
private |
Referenced by initialize(), and selectTalkOrSilenceInterval().
|
private |
Referenced by initialize(), selectTalkOrSilenceInterval(), sendVoIPPacket(), and talkspurt().
|
private |
Referenced by initialize(), sendVoIPPacket(), and talkspurt().