TCPSocket(3)

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

πŸ’– TCPSocket πŸ’–

okay bestie, listen up β€” this is a page from the MPQC manual, section 3 (that's the library-functions girly pop section, iykyk ✨). It's giving very "I was auto-generated but make it fashion" and honestly? We're obsessed. Let's get into it πŸ’…


✨ NAME ✨

TCPSocket β€” that's the name, that's the whole vibe. She's a socket. She does TCP. Periodt. πŸŽ€


🌸 SYNOPSIS 🌸

She's inherited by TCPIOSocket, and TCPServerSocket. So like… she's the mom of the socket family. Main character energy fr fr πŸ‘‘

πŸ¦‹ Public Member Functions πŸ¦‹

These are the things she can do, bestie β€” the whole roster, 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 ()

Like okay, look at her. create(), bind() with two u_int16_t args named port_begin and port_fence, then port() handing back an int, addr() handing back a u_int32_t, and two little vibe-check booleans initialized() and bound() so you always know where you stand. And close()? She's virtual, so she can be overridden β€” generational talent, honestly 🌈

🧚 Protected Attributes 🧚

These are the protected ones β€” inner circle only, you don't get to touch unless you're family πŸ’œ

  • int socket_ β€” yes with the lil underscore, she's private like that
  • int port_ β€” again, underscore. Consistent queen πŸ’…
  • bool initialized_ β€” is she initialized? the people wanna know
  • bool bound_ β€” is she bound? enquiring minds
lowkey important: these are protected, meaning they're not for just anyone to poke at. Respect the boundaries, bestie πŸ™ˆ

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code. So technically the author is a robot and the robot ate. No notes πŸ”₯


Anyway that's the whole page, angel. Every function, every attribute, every underscore β€” preserved. Nothing skipped, nothing invented, we just made it cute πŸ’–

Version 2.3.1 🌸, dated Sun Oct 4 2020 πŸŽ€ β€” and that's the tea, from the MPQC girls to you. Stay socketed, stay slaying, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from