RTPBaseUDPIPv4Socket(3)

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

✨ RTPBaseUDPIPv4Socket πŸ’–

okay bestie, welcome to the RTPBaseUDPIPv4Socket(3) glow-up πŸ’… this one lives in the Library Functions Manual, and honestly? she's a whole vibe. a UDP/IPv4 socket class that's specifically built for RTP stacks. no cap.


🌸 NAME 🌸

RTPBaseUDPIPv4Socket β€” a UDP/IPv4 socket class targeted at RTP stacks. periodt. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <channel.h>

Inherits UDPSocket. she's got lineage, okurrr πŸ‘‘

✨ Public Member Functions ✨

  • RTPBaseUDPIPv4Socket (const InetAddress &ia, tpport_t port) β€” Constructor for receiver.
  • ~RTPBaseUDPIPv4Socket () β€” the destructor, she's leaving the chat 🫢
  • 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 ()

🌈 Detailed Description 🌈

A UDP/IPv4 socket class targeted at RTP stacks. literally what it says on the tin bestie.

This class provides a flat interface that includes all the services required by an RTP stack. the way she just hands you everything you need... iconic. πŸ‘‘

It can be used in two ways:

  1. To instantiate the DualSocket template, which will be used to instantiate an RTP stack template (such as TRTPSessionBase).
  2. 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. she's not just a socket, she's a role model πŸ’–

πŸŽ€ Author πŸŽ€

Federico Montesino Pouzols fedemp@altern.org β€” king behavior, we stan 🫢


πŸ’œ Constructor & Destructor Documentation πŸ’œ

RTPBaseUDPIPv4Socket::RTPBaseUDPIPv4Socket (const InetAddress & ia, tpport_t port) [inline]

Constructor for receiver. she's here to receive, and she's ready πŸ’…

RTPBaseUDPIPv4Socket::~RTPBaseUDPIPv4Socket () [inline]

the goodbye era 😭

RTPBaseUDPIPv4Socket::RTPBaseUDPIPv4Socket () [inline]

Constructor for transmitter. this version's got main character energy and she sends. πŸ”₯


⭐ Member Function Documentation ⭐

Socket::Error RTPBaseUDPIPv4Socket::drop (const InetMcastAddress & ia) [inline]

void RTPBaseUDPIPv4Socket::endSocket () [inline]

size_t RTPBaseUDPIPv4Socket::getNextPacketSize () const [inline]

Get size of next datagram waiting to be read. she's peeking at the queue, no shame πŸ™ˆ

SOCKET RTPBaseUDPIPv4Socket::getRecvSocket () const [inline]

InetHostAddress RTPBaseUDPIPv4Socket::getSender (tpport_t & port) const [inline]

bool RTPBaseUDPIPv4Socket::isPendingRecv (microtimeout_t timeout) [inline]

Socket::Error RTPBaseUDPIPv4Socket::join (const InetMcastAddress & ia, uint32 iface) [inline]

size_t RTPBaseUDPIPv4Socket::recv (unsigned char * buffer, size_t len) [inline]

size_t RTPBaseUDPIPv4Socket::send (const unsigned char *const buffer, size_t len) [inline]

Socket::Error RTPBaseUDPIPv4Socket::setMulticast (bool enable) [inline]

void RTPBaseUDPIPv4Socket::setPeer (const InetAddress & ia, tpport_t port) [inline]

Socket::Error RTPBaseUDPIPv4Socket::setTimeToLive (unsigned char ttl) [inline]


🌟 Author 🌟

Generated automatically by Doxygen for ccRTP from the source code. πŸ€–βœ¨


okay that's the whole page bestie, and yes β€” it's from the ccRTP era, RTPBaseUDPIPv4Socket(3), Library Functions Manual, generated-by-Doxygen realness πŸŽ€ go forth and socket responsibly, ily πŸ’–πŸ¦‹

πŸ“¦ where this page comes from