JRTPLIB  3.11.1
Protected Member Functions | List of all members
jrtplib::RTPTCPTransmitter Class Reference

A TCP transmission component. More...

#include <rtptcptransmitter.h>

Inheritance diagram for jrtplib::RTPTCPTransmitter:
Inheritance graph
[legend]
Collaboration diagram for jrtplib::RTPTCPTransmitter:
Collaboration graph
[legend]

Protected Member Functions

virtual void OnSendError (SocketType sock)
 By overriding this function you can be notified of an error when sending over a socket. More...
 
virtual void OnReceiveError (SocketType sock)
 By overriding this function you can be notified of an error when receiving from a socket. More...
 
- Protected Member Functions inherited from jrtplib::RTPTransmitter
 RTPTransmitter (RTPMemoryManager *mgr)
 Constructor in which you can specify a memory manager to use. More...
 

Additional Inherited Members

- Public Types inherited from jrtplib::RTPTransmitter

Detailed Description

This class inherits the RTPTransmitter interface and implements a transmission component which uses TCP to send and receive RTP and RTCP data. The component's parameters are described by the class RTPTCPTransmissionParams. The functions which have an RTPAddress argument require an argument of RTPTCPAddress. The RTPTransmitter::GetTransmissionInfo member function returns an instance of type RTPTCPTransmissionInfo.

After this transmission component was created, no data will actually be sent or received yet. You can specify over which TCP connections (which must be established first) data should be transmitted by using the RTPTransmitter::AddDestination member function. This takes an argument of type RTPTCPAddress, with which relevant the socket descriptor can be passed to the transmitter.

These sockets will also be used to check for incoming RTP or RTCP data. The RTPTCPAddress instance that's associated with a received packet, will contain the socket descriptor on which the data was received. This descriptor can be obtained using RTPTCPAddress::GetSocket.

To get notified of an error when sending over or receiving from a socket, override the RTPTCPTransmitter::OnSendError and RTPTCPTransmitter::OnReceiveError member functions.

Member Function Documentation

void jrtplib::RTPTCPTransmitter::OnReceiveError ( SocketType  sock)
inlineprotectedvirtual
void jrtplib::RTPTCPTransmitter::OnSendError ( SocketType  sock)
inlineprotectedvirtual

The documentation for this class was generated from the following file: