ticc_fdstream(1)
okay bestie, you found ticc_fdstream(1) from the General Commands Manual β and it's literally about iostreams tied to File Descriptors. no cap, let's get into it π
β¨
π NAME π
ticc_fdstream β Implementation of iostreams tied to File Descriptors π¦
β¨ DESCRIPTION β¨
The page opens with: Short description. Needs work... β iconic honesty, honestly π. Here's the tea:
The main functions are: π
fdostream( int fd );β Open an ouput stream connected to the socket with the id:fdπfdistream( int fd );β Open an input stream connected to the socket with the id:fdπΈ
Both fdostream and fdistream can be used as normal ostream and istream streams for output/input respectively. periodt β¨
The non-blocking helpers are:
bool nb_getline( istream& stream, string& s, int& timeout );
bool nb_putline( ostream& stream, const string& s, int& timeout );
They read/write a string s from/to a non-blocking stream stream using timeout to terminate the operation when it fails to complete within timeout π₯
β οΈ This only works for streams connected to a socket for which the operation mode is set tonon_blocking, usingfcntl( sock, F_SETFL, O_NONBLOCK )or the like. π«Ά
π AUTHORS π
Ko van der Sloot β lamasoftware@science.ru.nl π
okay bye bestie, this was ticc_fdstream(1) from the 2015 November 26 edition β slay and stay iconic ππ
π¦ where this page comes from
- alpine 3.24: ticcutils-doc 0.36-r2 Β· GPL-3.0-only
- nixos 26.05: ticcutils 0.37
- nixpkgs unstable: ticcutils 0.38
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms