Boost logo

Boost :

Subject: Re: [boost] Boost ASIO - Client Request TCP Help..!!
From: Joseph Van Riper (fleeb.fantastique_at_[hidden])
Date: 2013-10-12 09:05:19

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

> YES, I did tried earlier and it did worked BTW, how to know which are
> relative and static functions.

As you look at the Asio reference, you'll see that there are 'Free
functions'. Those are going to be static functions. Anything else
requires an instance of a class.

I think you could have also used:

boost::asio::write( socket, boost::asio::buffer( &pf, sizeof(pf)), ec );

if you wanted to use free functions instead of the class's .send() function.

- Trey

Boost list run by bdawes at, gregod at, cpdaniel at, john at