Boost logo

Boost :

Subject: Re: [boost] Boost ASIO - Client Request TCP Help..!!
From: Joseph Van Riper (fleeb.fantastique_at_[hidden])
Date: 2013-10-11 21:03:04


On Fri, Oct 11, 2013 at 2:03 PM, Rahul Mathur <srivmuk_at_[hidden]> wrote:

> YES, I tried with ":tcp::socket::send(boost::asio::buffer((void *)pf,
> sizeof(pf)))" but it didn't worked.
>

Did you try:

std::size_t n = socket.send(boost::asio::buffer(&pf, sizeof(pf)));

I don't think boost::ip::tcp::socket::send is a static function.

- Trey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk