rtpext(3)

πŸ“¦
version 2.0.9 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing

✨ 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