TCPServerSocket(3)
π NAME π
TCPServerSocket β bestie, it's the server-side socket class, and she's here to listen. πβ¨
πΈ SYNOPSIS πΈ
Inherits TCPSocket.
That's it, that's the whole family tree β she gets literally everything from TCPSocket and adds exactly one little thing of her own. Inheritance ate, no cap. π
β¨ Public Member Functions β¨
void listen (int queue_length=8)β okay so this is her moment, the one method she brings to the table. She starts listening on the socket, andqueue_lengthis how many pending connections she'll hold in the queue while she's busy. It defaults to8, so if you don't say anything she's holding eight besties in the waiting room. π
π Public Member Functions inherited from TCPSocket π
Everything below is handed down from TCPSocket β she didn't write these, she just vibes with them. π«Ά
void create ()β makes the socket happen. β¨void bind (u_int16_t port_begin, u_int16_t port_fence)β locks her onto a port, searching betweenport_beginandport_fence. πͺint port ()β tells you which port she ended up on. π’u_int32_t addr ()β hands you the address. π¬bool initialized ()β is she initialized? true/false, that's the vibe check. πbool bound ()β is she bound to a port yet? πͺ’virtual void close ()β the virtual goodbye. She's virtual, so she knows how to shut down gracefully. πͺπ¨
π¦ Friends π¦
class TCPServerConnectionβ her one friend, her ride-or-die, the class that gets to peek at her private stuff. π―βοΈ
π Additional Inherited Members π
Protected Attributes inherited from TCPSocket
These are the protected little secrets she carries around, straight from TCPSocket. π
int socket_β the raw socket. πint port_β the port number, chilling in the background. π’bool initialized_β the flag that says whether she's been initialized. βbool bound_β the flag that says whether she's bound. πͺ’
π Author π
Generated automatically by Doxygen for MPQC from the source code. So likeβ¦ a robot wrote this about her. Respect honestly. π€π
And that's the whole page, bestie!! This one's from MPQC, Version 2.3.1, and you just read the manual for TCPServerSocket(3). Go forth and listen (with a queue_length of 8, obviously). ππ
π¦
π¦ 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