Generic IO class, socket or file

Hi,

I am looking for a generic IO class. It shall be able to handle sources and sinks from a socket or a file. I have been looking at boost iostream and asio but I need a generic interface to a source or a sink that can be ether socket or a file.

Does anyone have any proposals?

/ Mikael
Last edited on
There are several socket libraries that extend iostreams to provide an interface to sockets. I suggest you look into those also:
I'm not sure about their cross platformability, though.

http://socketstream.sourceforge.net/
http://www.linuxhacker.at/socketxx/
Topic archived. No new replies allowed.