SimpleVoipPacket

Namespace inet

SimpleVoipPacket

class

Represents a voice packet used by SimpleVoipSender / SimpleVoipReceiver

Extends

Name Type Description
FieldsChunk (unknown -- not in documented files)

Fields

Name Type Description
totalLengthField uint16_t

length of total SimpleVoipPacket in bytes

talkspurtID unsigned int

identifies the talkspurt

talkspurtNumPackets unsigned int

number of all packets of current talkspurt

packetID unsigned int

0..talkspurtNumPackets-1

voipTimestamp simtime_t

"mouth" timestamp of begin of voice in this packet

voiceDuration simtime_t

duration of voice in this packet

Packet operations (observed)

actionmodule
insertAtBackSimpleVoipSender
peekAtFrontSimpleVoipReceiver

Source code

//
// Represents a voice packet used by SimpleVoipSender / SimpleVoipReceiver
//
class SimpleVoipPacket extends FieldsChunk
{
    uint16_t totalLengthField;         // length of total SimpleVoipPacket in bytes
    unsigned int talkspurtID;          // identifies the talkspurt
    unsigned int talkspurtNumPackets;  // number of all packets of current talkspurt
    unsigned int packetID;             // 0..talkspurtNumPackets-1
    simtime_t voipTimestamp;            // "mouth" timestamp of begin of voice in this packet
    simtime_t voiceDuration;            // duration of voice in this packet
}
File: src/inet/applications/voip/SimpleVoipPacket.msg