Next: , Previous: Sending Data, Up: RTP Sessions


4.1.3 Receiving Data

Received data is retrieved from the incoming packet queue through the getData method, which, given a timestamp and an optional source of synchronization. This method returns a pointer to an AppDataUnit object as opposed to a pointer to a memory block. In ccRTP application data units are represented through objects of the AppDataUnit class, that provides access to the synchronization source of the data and other related properties.

The incoming packet queue takes care of functions such as packet reordering or filtering out duplicate packets.

You can guess if there are packets in the reception queue calling isWaiting. Both getData and isWaiting take an optional parameter which selects a particular synchronization source of data units. If not specified, data units are returned regardless of its source.