socket.h(3)
π 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 TCPSOCK_DGRAMUDP 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 andsetPeer()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 anint. 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
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms