GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ticc_fdstream(1) FreeBSD General Commands Manual ticc_fdstream(1)

ticc_fdstream - Implementation of iostreams tied to File Descriptors

Short description. Needs work...

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.

bool nb_getline( istream& stream, string& s, int& timeout );

bool nb_putline( ostream& stream, const string& s, int& timeout );

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.

Ko van der Sloot lamasoftware@science.ru.nl
2015 November 26

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.