Topic: the use of socket and std::iostream's
Author: Andrey <a.chaltsev@cs.man.ac.uk>
Date: Tue, 16 Jul 2002 17:55:15 GMT Raw View
Is there any portable way to use standard iostream functions together
with socket facilities <sys/socket.h>?
Do iostream classes has any facilities to take low-level file descriptor
and use it as input source or output sink?
Current standard ISO/IEC 14882:1998 do not say anything about such
things as file descriptor, FILE* or socket.
I know, it possible to inherit new class from streambuf and then rewrite
all input/output functions, but I think, there should be some standard
simple way to work with sockets in C++.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]