ticc_fdstream(1)

πŸ“¦ version 0.36, in alpine 3.24, nixos 26.05, nixpkgs unstable

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 to non_blocking, using fcntl( 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