Iostreams and Network

Hi, Iostreams documentation states: "For example, Boost.Iostreams can be used to create streams to access TCP connections". Is there any such attempt to create a TCP/IP communicating Source/Sink couple? I know asio is doing this, but I was looking for an pure Iostreams solution. Regards, JD

On 9/26/07, JD
Hi,
Iostreams documentation states: "For example, Boost.Iostreams can be used to create streams to access TCP connections". Is there any such attempt to create a TCP/IP communicating Source/Sink couple? I know asio is doing this, but I was looking for an pure Iostreams solution.
Asio does 'pure' iostreams too - check out the following examples: http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/examples/iostream... http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/examples/iostream... Richard

Yes but the thing is that if I want, for example, to compress my stream before sending it over the network, I can't use a tcp::iostream as a Boost.Iostreams sink. Actually, I was more looking at something like: boost::iostreams::tcp_sink, or something like that. JD
Asio does 'pure' iostreams too - check out the following examples:
http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/examples/iostream... http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/examples/iostream...
Richard
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

I've written a simple iostream over TCP using Winsock2. It was pretty trivial, only 6 files. Anyway, it seems to work pretty well, and is trivial to use. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of JD Sent: Tuesday, September 25, 2007 2:07 PM To: boost-users@lists.boost.org Subject: [Boost-users] Iostreams and Network Hi, Iostreams documentation states: "For example, Boost.Iostreams can be used to create streams to access TCP connections". Is there any such attempt to create a TCP/IP communicating Source/Sink couple? I know asio is doing this, but I was looking for an pure Iostreams solution. Regards, JD _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 AM

And also, is there any attempt to write a Source/Sink to read and write from shared memory? JD
Hi,
Iostreams documentation states: "For example, Boost.Iostreams can be used to create streams to access TCP connections". Is there any such attempt to create a TCP/IP communicating Source/Sink couple? I know asio is doing this, but I was looking for an pure Iostreams solution.
Regards,
JD

I would wait for Boost.interprocess before trying this one out. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of JD Sent: Wednesday, September 26, 2007 3:10 PM To: boost-users@lists.boost.org Cc: boost@lists.boost.org Subject: Re: [Boost-users] Iostreams and Network And also, is there any attempt to write a Source/Sink to read and write from shared memory? JD
Hi,
Iostreams documentation states: "For example, Boost.Iostreams can be used to create streams to access TCP connections". Is there any such attempt to create a TCP/IP communicating Source/Sink couple? I know asio is doing this, but I was looking for an pure Iostreams solution.
Regards,
JD
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.13.31/1031 - Release Date: 9/26/2007 12:12 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.13.31/1031 - Release Date: 9/26/2007 12:12 PM

JD wrote:
And also, is there any attempt to write a Source/Sink to read and write from shared memory?
It's not clear to me whether you are asking whether you can do this using asio or iostreams? The Iostreams library has memory_mapped_file, memory_mapped_source and memory_mapped_sink device classes already. I don't know about asio.
participants (4)
-
Daniel Dilts
-
egoots
-
JD
-
Richard Dingwall