RTPPACKET_RFC2833PAYLOAD(3)

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

πŸ’– NAME πŸ’–

RTPPacket::RFC2833Payload β€” a structure defining RFC2833 Telephony events. bestie, it's literally the lil blob of bits that carries your phone-keypress energy through RTP πŸ’…


✨ SYNOPSIS ✨

#include <rtppkt.h>

πŸŽ€ Public Attributes πŸŽ€

  • uint8 event: 8
  • bool ebit: 1
  • bool rbit: 1
  • uint8 vol: 6
  • uint16 duration: 16

πŸ¦‹ Detailed Description πŸ¦‹

okay so. this is a structure defining RFC2833 Telephony events. it's the structure you use to define RFC2833 telephony events inside RTP 🫢

and here's the iconic part, the main character move: you can use this by recasing the pointer returned by getPayload(). that's it. that's the whole vibe. pointer comes back from getPayload(), you recast it, and boom β€” you're reading telephony events off the wire ✨

no cap, "recasing" is exactly what the original says β€” we're not renaming anything here, we're just re-homing the pointer into this struct's lil outfit πŸ’œ

🌸 Member Data Documentation 🌸

πŸ’« uint16 RTPPacket::RFC2833Payload::duration πŸ’«

the uint16 field for how long the event has been going, 16 bits of it. she's got stamina, periodt.

πŸ’« bool RTPPacket::RFC2833Payload::ebit πŸ’«

the end bit, bool, 1 bit wide. she marks the end of the event and she knows it πŸŽ€

πŸ’« uint8 RTPPacket::RFC2833Payload::event πŸ’«

the uint8 event field, 8 bits of pure event identity. which key was pressed, basically. iconic.

πŸ’« bool RTPPacket::RFC2833Payload::rbit πŸ’«

the bool rbit, 1 bit. yes she's tiny. yes she matters πŸ’…

πŸ’« uint8 RTPPacket::RFC2833Payload::vol πŸ’«

the uint8 volume field, 6 bits. how loud we're doing this. respect the range, bestie, she's only got six bits πŸ“


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for ccRTP from the source code. so like, nobody hand-wrote this one, the robot did it and honestly? she ate. πŸ€–βœ¨


that's the whole page bestie, fr fr β€” this came out of the ccRTP manual, section RTPPacket:...2833Payload(3), and it's giving very much "library functions manual" energy. go recast that payload pointer and slay πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from