TCPServerConnection(3)

πŸ“¦ version 2.3.1, in fedora 43, fedora 44

✨ NAME ✨

TCPServerConnection β€” bestie it's literally just the class name, that's the whole vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so it inherits TCPIOSocket, which is giving "I got my whole personality from my parent class" and honestly? iconic of it. ✨

πŸ’– Public Member Functions πŸ’–

  • void accept (const TCPServerSocket &) β€” the one (1) thing this class actually does itself, and it's a slay 🫢

🌸 Public Member Functions inherited from TCPIOSocket 🌸

these are all just chilling here, handed down from the parent like hand-me-downs that are actually cute:

  • int read (void *d, int n) β€” read some bytes into d, n of them πŸ“
  • int write (const void *d, int n) β€” write n bytes out from d πŸ’Œ
  • int read_int (int *d, int n) β€” read a bunch of ints into d, count is n πŸ”’
  • int write_int (const int *d, int n) β€” write n ints from d 🧚
  • int read_string (std::string &) β€” read yourself a whole string, yes ma'am 🌈
  • int write_string (const std::string &) β€” send a string out into the world, main character energy ✨
  • int read_int (int &) β€” read one singular int, lowkey the simplest thing ever πŸ’œ
  • int write_int (int) β€” write one singular int, equally simple, equally valid ⭐
  • int read_uint32 (u_int32_t &) β€” read a u_int32_t, very specific of you and I respect it πŸ’–
  • int write_uint32 (u_int32_t) β€” write a u_int32_t, same energy, different direction πŸ”₯

πŸ‘‘ Public Member Functions inherited from TCPSocket πŸ‘‘

the grandparent class said "let me also contribute" and honestly we're obsessed:

  • void create () β€” makes the socket exist, it's giving birth but for file descriptors 😭
  • void bind (u_int16_t port_begin, u_int16_t port_fence) β€” bind to a port, starting at port_begin and fenced off at port_fence πŸŽ€
  • int port () β€” tells you which port you're on, no cap πŸ“ž
  • u_int32_t addr () β€” hands you the address, fr fr 🏠
  • bool initialized () β€” vibe check: is it initialized or not πŸ’€
  • bool bound () β€” vibe check round two: is it bound πŸ‘€
  • virtual void close () β€” shut it down. it's virtual, so it knows how to be overridden. periodt. πŸ’…

πŸŽ€ Additional Inherited Members πŸŽ€

πŸ’œ Protected Attributes inherited from TCPSocket πŸ’œ

the family secrets, protected so only the bloodline can touch them:

  • int socket_ β€” the actual socket number, the whole point of everything 🌟
  • int port_ β€” the port, stored right there πŸ”Œ
  • bool initialized_ β€” the receipts for initialized() 🧾
  • bool bound_ β€” the receipts for bound() πŸ“‹

πŸ¦„ Author πŸ¦„

Generated automatically by Doxygen for MPQC from the source code. β€” so like, nobody wrote this by hand, a robot did it, and the robot ate, honestly πŸ€–βœ¨


okay bestie that's the whole page, no notes 🫢 this was MPQC Version 2.3.1, brought to you by the TCPServerConnection(3) era of the docs, and yes the Doxygen robot remains undefeated πŸ’–πŸ’…

πŸ“¦ where this page comes from