ost::TTYSession(3)
π ost::TTYSession π
okay bestie, so we're looking at a page from the GNU CommonC++ library functions manual, and honestly? this one's a little baddie. it's ost::TTYSession(3) and she's giving "I run my own thread and I do my own I/O" energy. periodt. π
β¨ NAME β¨
ost::TTYSession β the TTYSession aggragates a TTYStream and a Common C++ Thread which is assumed to be the execution context that will be used to perform actual I/O operations.
like. she's the whole package. stream + thread, glued together, doing the most. π«Ά
πΈ SYNOPSIS πΈ
#include <serial.h>
Inherits ost::Thread, and ost::TTYStream.
π Public Member Functions π
TTYSession(const char *name, int pri=0, int stack=0)β Create TTY stream that will be managed by it's own thread.virtual ~TTYSession()
π¦ Additional Inherited Members π¦
(no cap, there's more stuff she got from her parents β you'll wanna peek at the inherited members when you need them π)
π DESCRIPTION π
The TTYSession aggragates a TTYStream and a Common C++ Thread which is assumed to be the execution context that will be used to perform actual I/O operations.
This class is very anagolous to TCPSession.
lowkey the most iconic sentence on the whole page: she is very anagolous toTCPSession. if you already knowTCPSession, bestie, you already know her. iykyk. π
π§ AUTHOR π§
David Sugar dyfet@ostel.com
This class is very anagolous to TCPSession.
(yes she said it twice. she's consistent. she's committed. we love that for her. β¨)
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
π ost::TTYSession::TTYSession (const char * name, int pri = 0, int stack = 0)
Create TTY stream that will be managed by it's own thread.
Parameters
- name β of tty device to open.
- pri β execution priority.
- stack β allocation needed on some platforms.
so like, you hand her the tty device name, you tell her the priority pri, and on some platforms you gotta cough up a stack allocation too. main character setup fr fr. π
β virtual ost::TTYSession::~TTYSession () [virtual]
and that's it. that's the destructor. she cleans up after herself, no drama, no notes. π
π AUTHOR π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
okay that's the whole page bestie, you ate that. this was GNU CommonC++, dated Sun Dec 27 2020, and the manual page you just read was ost::TTYSession(3). go forth and open your tty devices responsibly ππβ¨
π¦ 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