ost::SSLStream(3)
π ost::SSLStream π
okay so bestie, welcome to the SSLStream page from the Library Functions Manual β yeah, section 3, the library functions one, you know the vibe. this is the GNU CommonC++ SSL stream class and it's literally the moment your sockets get the little padlock. πβ¨
πΈ NAME πΈ
ost::SSLStream β no cap, that's the whole name. iconic behavior honestly.
β¨ SYNOPSIS β¨
first things first, you gotta pull it in:
#include <ssl.h>
and the way that it inherits from ost::TCPStream?? yeah. it's giving "secure glow-up of a TCP stream." main character energy fr fr. π
π Public Member Functions π
here's the whole roster, every single one, no skipping:
SSLStream (Family family=IPV4, bool throwflag=true, timeout_t to=0)
void disconnect (void)
SSLStream (const IPV4Host &host, tpport_t port, unsigned mss=536, bool
throwflag=true, timeout_t to=0)
SSLStream (const IPV6Host &host, tpport_t port, unsigned mss=536, bool
throwflag=true, timeout_t to=0)
SSLStream (const char *name, Family family=IPV4, unsigned mss=536, bool
throwflag=false, timeout_t to=0)
SSLStream (const SSLStream &ssl)
bool isSSL (void)
bool getSession (void)
void endStream (void)
virtual ~SSLStream ()
ssize_t readLine (char *str, size_t max, timeout_t to=0)
ssize_t readData (void *buf, size_t len, char separator=0, timeout_t
to=0)
ssize_t writeData (void *buf, size_t len, timeout_t to=0)
likeβ¦ five constructors, a destructor, and the whole read/write situation. she does it all. π«Ά
π Protected Attributes π
SSL * ssl
just the raw SSL pointer, living its protected little life. iykyk. π
π Additional Inherited Members π
there's more stuff inherited from the parent class, but it lives over on the TCPStream page, not here. go check her out. π
π§ Constructor & Destructor Documentation π§
ost::SSLStream::SSLStream (Family family = IPV4, bool throwflag = true, timeout_t to = 0)ost::SSLStream::SSLStream (const IPV4Host & host, tpport_t port, unsigned mss = 536, bool throwflag = true, timeout_t to = 0)ost::SSLStream::SSLStream (const IPV6Host & host, tpport_t port, unsigned mss = 536, bool throwflag = true, timeout_t to = 0)ost::SSLStream::SSLStream (const char * name, Family family = IPV4, unsigned mss = 536, bool throwflag = false, timeout_t to = 0)ost::SSLStream::SSLStream (const SSLStream & ssl)virtual ost::SSLStream::~SSLStream () [virtual]
okay so six of them. yes six. five constructors and one virtual destructor, and the destructor is marked [virtual] so it cleans up properly when you delete through a base pointer. she's polite like that. π
π« Member Function Documentation π«
void ost::SSLStream::disconnect (void)β cut the connection loose. bye bestie πvoid ost::SSLStream::endStream (void)β wrap up the stream, we're done here.bool ost::SSLStream::getSession (void)β hands you back a bool about the session. yes queen, tell us. πbool ost::SSLStream::isSSL (void) [inline]β inline, fast, and it Referencesssl. that's the whole note, and honestly? valid.ssize_t ost::SSLStream::readData (void * buf, size_t len, char separator = 0, timeout_t to = 0) [virtual]β Reimplemented fromost::Socket. so if you were looking for the OG version, she's over there.ssize_t ost::SSLStream::readLine (char * str, size_t max, timeout_t to = 0)β reads you a line. classic.ssize_t ost::SSLStream::writeData (void * buf, size_t len, timeout_t to = 0)β writes your data out. go off. π₯
π Member Data Documentation π
SSL* ost::SSLStream::ssl [protected]β protected, and Referenced byisSSL(). so like,isSSL()is literally peeking at her. besties fr. π«Ά
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
so nobody hand-wrote this, Doxygen did it, and we respect the automation grind. π€β¨
and that's the whole page bestie!! π this was GNU CommonC++, dated Sun Dec 27 2020, and it's the ost::SSLStream(3) page β thank you for coming to my ted talk, go secure those streams, mwah ππΈ
π¦ 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