|
Boost Users : |
Subject: Re: [Boost-users] How to upload a file with ASIO
From: Benjamin Sobotta (mayday_at_[hidden])
Date: 2009-11-03 11:11:01
On Tuesday 03 November 2009 04:37:08 pm Ramon F Herrera wrote:
> Hello,
>
> I have successfully implemented clients and servers, both in the Windows
> side and the Linux side. So far, the Windows client passes a set of
> parameters and the servers returns some text which is displayed on the
> client's screen. That part is working perfectly.
>
> My next challenge is to upload a whole file(s) from the client to the
> server and would like hear any tips, caveats from experienced ASIO users.
>
> Thanks to everyone for sharing their expertise.
>
> Regards,
>
> -Ramon
>
Hello,
It would be interesting to know *how* you exactly transfer the information at
hand and then build a solution from there.
Anyways, I use ASIO in conjunction with boost::serialization. There is an
example on the ASIO website. I found that combination extremely handy. With
this approach one could easily transfer any kind of data, for example in a
std::vector.
hth,
Benjamin
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net