TCPIOSocket(3)
π NAME π
TCPIOSocket β the icon, the moment, the socket that actually reads and writes your data for you β¨
πΈ SYNOPSIS πΈ
Bestie, listen. TCPIOSocket is a whole class, and she inherits TCPSocket. Periodt.
She's also inherited by TCPClientConnection and TCPServerConnection, so she's basically the cool mom of the family π«Ά
β¨ Public Member Functions β¨
Like. Every single one of these. No skipping π
int read (void *d, int n)
int write (const void *d, int n)
int read_int (int *d, int n)
int write_int (const int *d, int n)
int read_string (std::string &)
int write_string (const std::string &)
int read_int (int &)
int write_int (int)
int read_uint32 (u_int32_t &)
int write_uint32 (u_int32_t)
So you can read and write raw buffers, do the _int thing with both pointer-and-count and reference versions (obsessed with the range honestly), do strings with std::string, and handle u_int32_t too. All ten of them, right there π₯
π Public Member Functions inherited from TCPSocket π
The generational wealth she got from her parent class, no cap:
void create ()
void bind (u_int16_t port_begin, u_int16_t port_fence)
int port ()
u_int32_t addr ()
bool initialized ()
bool bound ()
virtual void close ()
Note the virtual void close () β that one's virtual, so it can be overridden. It's giving polymorphic main character energy π¦
π Additional Inherited Members π
Protected Attributes inherited from TCPSocket
These are protected, so they're family-only. You don't touch them from outside, iykyk:
int socket_
int port_
bool initialized_
bool bound_
π Author π
Literally generated automatically by Doxygen for MPQC from the source code. Not a human, not a bestie, just a robot doing her thing πβ¨
And that's the whole page, babe β TCPIOSocket(3) from the Library Functions Manual, brought to you by MPQC Version 2.3.1. Love her, respect her, go read and write some bytes responsibly ππ
π¦ 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