RTPBaseUDPIPv4Socket - A UDP/IPv4 socket class targeted at RTP stacks.
Contents
Constructor & Destructor Documentation
RTPBaseUDPIPv4Socket::RTPBaseUDPIPv4Socket(constInetAddress&ia,tpport_tport)[inline]
Constructor for receiver.
RTPBaseUDPIPv4Socket::~RTPBaseUDPIPv4Socket()[inline]RTPBaseUDPIPv4Socket::RTPBaseUDPIPv4Socket()[inline]
Constructor for transmitter.
Detailed Description
A UDP/IPv4 socket class targeted at RTP stacks.
This class provides a flat interface that includes all the services required by an RTP stack.
It can be used in two ways:
To instantiate the DualSocket template, which will be used to instantiate an RTP stack template (such as
TRTPSessionBase).
To directly instantiate an RTP stack template (such as TRTPSessionBase).
This class offers an example of the interface that other classes should provide in order to specialize
the ccRTP stack for different underlying protocols.
Author
Federico Montesino Pouzols fedemp@altern.orgMember Function Documentation
Socket::ErrorRTPBaseUDPIPv4Socket::drop(constInetMcastAddress&ia)[inline]voidRTPBaseUDPIPv4Socket::endSocket()[inline]size_tRTPBaseUDPIPv4Socket::getNextPacketSize()const[inline]
Get size of next datagram waiting to be read.
SOCKETRTPBaseUDPIPv4Socket::getRecvSocket()const[inline]InetHostAddressRTPBaseUDPIPv4Socket::getSender(tpport_t&port)const[inline]boolRTPBaseUDPIPv4Socket::isPendingRecv(microtimeout_ttimeout)[inline]Socket::ErrorRTPBaseUDPIPv4Socket::join(constInetMcastAddress&ia,uint32iface)[inline]size_tRTPBaseUDPIPv4Socket::recv(unsignedchar*buffer,size_tlen)[inline]size_tRTPBaseUDPIPv4Socket::send(constunsignedchar*constbuffer,size_tlen)[inline]Socket::ErrorRTPBaseUDPIPv4Socket::setMulticast(boolenable)[inline]voidRTPBaseUDPIPv4Socket::setPeer(constInetAddress&ia,tpport_tport)[inline]Socket::ErrorRTPBaseUDPIPv4Socket::setTimeToLive(unsignedcharttl)[inline]Name
RTPBaseUDPIPv4Socket - A UDP/IPv4 socket class targeted at RTP stacks.
Synopsis
#include <channel.h>
Inherits UDPSocket.
PublicMemberFunctionsRTPBaseUDPIPv4Socket (const InetAddress &ia, tpport_t port)
Constructor for receiver.
~RTPBaseUDPIPv4Socket ()
bool isPendingRecv (microtimeout_t timeout)
InetHostAddress getSender (tpport_t &port) const
size_t recv (unsigned char *buffer, size_t len)
size_t getNextPacketSize () const
Get size of next datagram waiting to be read.
Socket::Error setMulticast (bool enable)
Socket::Error join (const InetMcastAddress &ia, uint32 iface)
Socket::Error drop (const InetMcastAddress &ia)
Socket::Error setTimeToLive (unsigned char ttl)
RTPBaseUDPIPv4Socket ()
Constructor for transmitter.
void setPeer (const InetAddress &ia, tpport_t port)
size_t send (const unsigned char *const buffer, size_t len)
SOCKET getRecvSocket () const
void endSocket ()
