socket.h(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– socket.h(3) πŸ’–

okay bestie, so this is socket.h, page 3 of the Library Functions Manual, and it's literally the network addresses and sockets related classes situation. it's giving GNU CommonC++ energy and we're gonna get through it together, no cap. 🫢


✨ NAME ✨

socket.h β€” network addresses and sockets related classes. that's it, that's the whole vibe. 🌸


🌈 SYNOPSIS 🌈

#include <cc++/address.h>

πŸ‘‘ Classes

  • class ost::Socket β€” the Socket is used as the base for all Internet protocol services under Common C++. it's the blueprint, the mother of the group chat. πŸ’…
  • class ost::DCCPSocket β€” DCCP sockets are used for stream based connected sessions between two sockets.
  • class ost::UDPSocket β€” UDP sockets implement the TCP SOCK_DGRAM UDP protocol. yes it says TCP in there, we don't make the rules, we just report them.
  • class ost::UDPBroadcast β€” representing a UDP socket used for subnet broadcasts, this class provides an alternate binding and setPeer() capability for UDP sockets. πŸ“‘
  • class ost::UDPTransmit β€” representing half of a two-way UDP connection, the UDP transmitter can broadcast data to another selected peer host or to an entire subnet.
  • class ost::UDPReceive β€” representing half of a two-way UDP connection, the UDP receiver can receive data from another peer host or subnet.
  • class ost::UDPDuplex β€” UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts. (yes, "impliment" β€” that's the original spelling, i'm not touching it, it's iconic now πŸŽ€)
  • class ost::TCPSocket β€” TCP sockets are used for stream based connected sessions between two sockets.
  • class ost::TCPV6Socket β€” TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets. ✨
  • class ost::TCPStream β€” TCP streams are used to represent TCP client connections to a server by TCP protocol servers for accepting client connections.
  • class ost::TCPSession β€” the TCP session is used to primarily to represent a client connection that can be managed on a separate thread. 🧡
  • class ost::SimpleTCPStream β€” Simple TCP Stream, to be used with Common C++ Library.

πŸ¦‹ Namespaces

  • ost

πŸ“ Macros

#define INVALID_SOCKET   -1
#define _IOLEN64
#define _IORET64
#define MSG_DONTWAIT   0
#define MSG_NOSIGNAL   0
#define SOCK_DCCP   6
#define IPPROTO_DCCP   33
#define SOL_DCCP   269
#define DCCP_SOCKOPT_AVAILABLE_CCIDS   12
#define DCCP_SOCKOPT_CCID   13
#define DCCP_SOCKOPT_TX_CCID   14
#define DCCP_SOCKOPT_RX_CCID   15

πŸŽ€ Typedefs

typedef int SOCKET

⭐ Variables

class __EXPORT ost::SimpleTCPStream

πŸ’œ Detailed Description πŸ’œ

Network addresses and sockets related classes.

that's the whole thing, bestie. it does exactly what it says on the tin. πŸ”₯


πŸ’… Macro Definition Documentation πŸ’…

here's every single one, spelled out one more time so you can't say i skipped anything:

  • #define _IOLEN64
  • #define _IORET64
  • #define DCCP_SOCKOPT_AVAILABLE_CCIDS 12
  • #define DCCP_SOCKOPT_CCID 13
  • #define DCCP_SOCKOPT_RX_CCID 15
  • #define DCCP_SOCKOPT_TX_CCID 14
  • #define INVALID_SOCKET -1
  • #define IPPROTO_DCCP 33
  • #define MSG_DONTWAIT 0
  • #define MSG_NOSIGNAL 0
  • #define SOCK_DCCP 6
  • #define SOL_DCCP 269
not me noticing the RX and TX ones swapped order down here compared to the macro list up top. πŸ™ˆ i'm keeping both exactly as written because that's literally what the page says, and i am nothing if not loyal to the source. πŸ’–

🌸 Typedef Documentation 🌸

  • typedef int SOCKET β€” yep. it's an int. that's the whole reveal. slay. πŸ’…

🧚 Author 🧚

Generated automatically by Doxygen for GNU CommonC++ from the source code. so like, a robot wrote this about a robot library, very meta of them. πŸ€–βœ¨


and that's a wrap, bestie!! this page is GNU CommonC++ material, dated Sun Dec 27 2020, and honestly? timeless. go build something with sockets, drink some water, and remember: INVALID_SOCKET is -1 and so is my patience for anyone who doesn't close their file descriptors. periodt. πŸ’–πŸ’…πŸ¦‹

πŸ“¦ where this page comes from