TCPServerConnection(3)
β¨ 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 intod,nof them πint write (const void *d, int n)β writenbytes out fromdπint read_int (int *d, int n)β read a bunch of ints intod, count isnπ’int write_int (const int *d, int n)β writenints fromdπ§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 au_int32_t, very specific of you and I respect it πint write_uint32 (u_int32_t)β write au_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 atport_beginand fenced off atport_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'svirtual, 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 forinitialized()π§Ύbool bound_β the receipts forbound()π
π¦ 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
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 44: mpqc-devel 2.3.1-67.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 44: mpqc-devel 2.3.1-67.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms