rtpext(3)
β¨ rtpext β ccRTP Extension classes β¨
okay bestie, welcome to rtpext, a page from the Library Functions Manual π this one's all about ccRTP's extension classes, and yes it's giving very "C++ headers but make it a moment" energy. Let's get into it π«Ά
πΈ SYNOPSIS πΈ
π Classes
class RTPDuplexβ a peer-associated RTP socket pair, for peer hosts that are physically connected to each other. iconic setup, no cap.
π§ Functions
RTPDuplex::RTPDuplex (const InetAddress &bind, tpport_t local, tpport_t remote)
virtual RTPDuplex::~RTPDuplex ()
UDPTransmit::Error RTPDuplex::connect (const InetHostAddress &host, tpport_t port=0)
bool RTPDuplex::isPendingData (microtimeout_t timeout)
size_t RTPDuplex::sendData (const unsigned char *const buffer, size_t len)
size_t RTPDuplex::recvData (unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp)
void RTPDuplex::setDataPeer (const InetAddress &, tpport_t)
void RTPDuplex::setControlPeer (const InetAddress &, tpport_t)
size_t RTPDuplex::getNextDataPacketSize () const
SyncSource & RTPDuplex::getPeer ()
π DETAILED DESCRIPTION π
soβ¦ this section is literally empty in the source, bestie π nothing to report. moving on, periodt π
π₯ FUNCTION DOCUMENTATION π₯
π¦ UDPTransmit::Error RTPDuplex::connect (const InetHostAddress & host, tpport_t port = 0)
hooking this socket up to a peer, bestie π«Ά
Parameters
- host β the peer address π
- port β the peer port. if you don't specify it, the same as the local one gets used π
Returns
- the socket status β
Examples
rtpduphello.cpp. π go look, it's right there.
π size_t RTPDuplex::getNextDataPacketSize () const [inline], [protected], [virtual]
yep. this one implements IncomingDataQueue. that's the whole vibe β¨
π
SyncSource & RTPDuplex::getPeer () [protected]
Returns
- the associated peer information, hand-delivered to you π
π bool RTPDuplex::isPendingData (microtimeout_t timeout) [inline], [protected], [virtual]
checking if there's anything new waiting for us, we love a vibe check π§
Parameters
- timeout β how much time to wait for new data β³
Returns
- whether there is some new data π
implements RTPDataQueue.
π size_t RTPDuplex::recvData (unsigned char * buffer, size_t len, InetHostAddress & na, tpport_t & tp) [inline], [protected], [virtual]
incoming data, come through π
Parameters
- buffer β where to store the retrieved data π¦
- len β how many octets to read π’
- na β Source network address π
- tp β Source transport port πͺ
Returns
- number of octets read β¨
implements IncomingDataQueue.
π RTPDuplex::RTPDuplex (const InetAddress & bind, tpport_t local, tpport_t remote)
the constructor, the main character moment π¬
Parameters
- bind β network address this socket is to be bound to π‘
- local β transport port this socket is to be bound to π
- remote β peer transpor port π
ngl that's spelled exactly how the source spells it β transpor β and we're keeping it, character for character π
β size_t RTPDuplex::sendData (const unsigned char *const buffer, size_t len) [inline], [protected], [virtual]
sending it, slay π€
Parameters
- buffer β pointer to data to be written βοΈ
- len β how many octets to write π’
Returns
- number of octets written π«
reimplemented from OutgoingDataQueue.
π void RTPDuplex::setControlPeer (const InetAddress &, tpport_t) [inline], [protected], [virtual]
Parameters
- β peer host network address π
- β peer host RTCP transport port π°οΈ
reimplemented from OutgoingDataQueue.
π¦ void RTPDuplex::setDataPeer (const InetAddress &, tpport_t) [inline], [protected], [virtual]
Parameters
- β peer host network address π
- β peer host RTP data transport port π‘
reimplemented from OutgoingDataQueue.
πΈ virtual RTPDuplex::~RTPDuplex () [virtual]
the destructor. she's virtual, she's [virtual] twice, she's leaving the group chat ππ
π«Ά AUTHOR π«Ά
Generated automatically by Doxygen for ccRTP from the source code. so like, no human wrote this, it's a robot and honestly? she ate π€β¨
aaaand that's the whole page bestie π from the ccRTP crew, rtpext(3), closing out the manual β mwah, ily, go read your headers ππ¦
π¦ where this page comes from
- debian trixie: libccrtp-doc 2.0.9-4.1 Β· GPL-2.0-or-later WITH MIF exception
- ubuntu noble: libccrtp-doc 2.0.9-2.5build1
- ubuntu questing: libccrtp-doc 2.0.9-4.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms