Abstract base class for UDP RTP protocol service. More...
#include <rtp.h>
Inherits: UDPSocket
This abstract class implements the basic support needed for a UDP RTP socket. The RTP Socket with dual service threads are now known as RTPTransiever.
Retrieve payload format and header info for host socket.
seq | number of last sent packet. |
timestamp | of last sent packet. |
Retrieve payload format and header info from peer socket.
seq | number of last received packet. |
timestamp | of last received packet. |
Add a conference id to the RTP send message.
source | for added conference id. |
Set this server's stream source id.
source | id to use for my stream. |
Write data to the UDP socket. This implements the send service thread writer.
address | buffer to write. |
len | of bytes to write in addition to the header. |
read data from the UDP socket. This implements the receive service thread reader.
address | buffer to read. |
len | of bytes to read from buffer. |
wait for data to appear in the socket, and if it does, fill the header.
timeout | in milliseconds. |
Update the time stamp for the next sent packet.
count | of frames to skip. |
Get default frame sample size currently in effect.
Create and bind an RTP socket to an internet interface address and known port number. The sending thread timeout can be adjusted with setTimeout() before calling Start() for the sending service thread. One might also call setPayload, etc.
port | address to bind the service under. |
bind | address to bind this socket to. |
Sets the payload id for sending RTP packets. This is virtualized so that RTPAudio can also specify sampling rates based on the returned value.
payload | message type (0-127) for sending. |
optional | frame timeout for sample size. |
| Kdoc |