VoipStreamPacket

Namespace: inet

class VoipStreamPacket

Packet type used by VoIPSourceApp and VoIPSinkApp

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

FieldsChunk

class

(no description)

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

headerLength

short

from voipHeaderSize parameter

type

VoipStreamPacketType

codec

int

FFmpeg identifier of the codec

sampleBits

short

sampleRate

int

transmitBitrate

int

samplesPerPacket

int

seqNo

uint16_t

packet sequence number

timeStamp

uint32_t

increased with every packet

ssrc

uint32_t

currently unused

dataLength

uint16_t

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// Packet type used by VoIPSourceApp and VoIPSinkApp
//
class VoipStreamPacket extends FieldsChunk
{
    short headerLength = 0;     // from voipHeaderSize parameter
    VoipStreamPacketType type;
    int codec;  // FFmpeg identifier of the codec
    short sampleBits;
    int sampleRate;
    int transmitBitrate;
    int samplesPerPacket;

    uint16_t seqNo; // packet sequence number
    uint32_t timeStamp; // increased with every packet
    uint32_t ssrc;  // currently unused

    uint16_t dataLength;
}

File: src/inet/applications/voipstream/VoipStreamPacket.msg