Boost logo

Boost Users :

Subject: Re: [Boost-users] Transferring files across a network.
From: Cliff Green (cliffg_at_[hidden])
Date: 2009-01-31 19:06:02


> I now have a client and a server that can handle multiple files being
> sent over the network. The files are attached for your interest. If
> anyone can improve them I really will welcome their comments.
>
> If there is a need, it is Ok to include them as examples in the ASIO
> documentation. I have no issues with this.

I mentioned this before, but here goes again - the following:

sizeof(buffer_)

should be:

buffer_.size()

Alignment or padding on some compilers might cause sizeof(buffer_) to be
incorrect (different than buffer_size(), although it's probably rare).

Cliff

 


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