TCPIOSocket(3)

πŸ“¦
version 2.3.1 Β· 3 versions
, in ubuntu jammy

πŸ’– NAME πŸ’–

TCPIOSocket β€” okay so this one is from the MPQC manual, section 3, and she is literally just here to do socket I/O for you, no cap. Bestie, that's the whole name. That's it. Slay. πŸ’…


✨ SYNOPSIS ✨

Inherits TCPSocket.

Inherited by TCPClientConnection, and TCPServerConnection.

So the family tree is giving very much main character energy 🌈 β€” she inherits from TCPSocket, and then TCPClientConnection and TCPServerConnection both inherit from her. Iconic lineage honestly πŸ‘‘

🫢 Public Member Functions 🫢

Ten of them. All of them. Every single one, periodt πŸ’€

  • int read (void *d, int n) β€” the read that takes a void *d and an int n, and hands you back an int πŸ“
  • int write (const void *d, int n) β€” the matching write, const void *d plus int n, int comes home πŸ’œ
  • int read_int (int *d, int n) β€” read, but the int-flavoured one, with an int *d and an int n ✨
  • int write_int (const int *d, int n) β€” write, also int-flavoured, const int *d and int n this time 🌸
  • int read_string (std::string &) β€” read a string, passed by reference as std::string & πŸŽ€
  • int write_string (const std::string &) β€” write a string, const std::string &, so she is not touching your string, respectfully πŸ™ˆ
  • int read_int (int &) β€” yes bestie, another read_int, this one taking a single int &. Overloaded. She contains multitudes πŸ’…
  • int write_int (int) β€” and another write_int, this one taking a plain int. The overloads are overload-ing 😭
  • int read_uint32 (u_int32_t &) β€” read a u_int32_t &, because 32 unsigned bits deserve their moment ⭐
  • int write_uint32 (u_int32_t) β€” write a u_int32_t, by value, and she ate πŸ”₯
Not me noticing there are two read_ints and two write_ints β€” different signatures, same name, so watch which one you're calling, iykyk πŸ‘€

🌈 Additional Inherited Members 🌈

The page lowkey just says Additional Inherited Members and then dips β€” like, there's a whole section for it, and the details are living over on the inherited side of the family. Go look at what she got from TCPSocket, bestie πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code. So nobody hand-wrote this one β€” the robot did it, and honestly? It did that 🫢


And that's the whole page, bestie!! πŸ’–βœ¨πŸŽ€ This was Version 2.3.1, dated Sun Oct 4 2020 β€” go off, you absolute legend πŸ‘‘πŸ’…πŸŒΈ

πŸ“¦ where this page comes from