Boost [asio]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Boost [asio]

Boost - Users mailing list
Hello , I’ve the following c++ call that gives me an “ Invalid Argument “ error : 

int Asio_Send_Pck(int iSendt,int Lsocket,char * Lbuff,int Len)

{

    session* iTempSession = reinterpret_cast<session*>(Lsocket);

    boost::asio::async_write(iTempSession->socket() ,

                              boost::asio::buffer(Lbuff, Len),

                              boost::bind(&session::handle_write, 

                              iTempSession,

                              boost::asio::placeholders::error,

                              iTempSession->data,

                              iSendt

                              ));

    return 0;

};



Please may i know where's this invalide argument ? 


Thank you


_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: Boost [asio]

Boost - Users mailing list
Try posting something more substantial on stackoverflow

On Tue, Jul 17, 2018 at 11:08 AM, randy via Boost-users <[hidden email]> wrote:
Hello , I’ve the following c++ call that gives me an “ Invalid Argument “ error : 

int Asio_Send_Pck(int iSendt,int Lsocket,char * Lbuff,int Len)

{

    session* iTempSession = reinterpret_cast<session*>(Lsocket);

    boost::asio::async_write(iTempSession->socket() ,

                              boost::asio::buffer(Lbuff, Len),

                              boost::bind(&session::handle_write, 

                              iTempSession,

                              boost::asio::placeholders::error,

                              iTempSession->data,

                              iSendt

                              ));

    return 0;

};



Please may i know where's this invalide argument ? 


Thank you


_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users



_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: Boost [asio]

Boost - Users mailing list
In reply to this post by Boost - Users mailing list
On 17/07/2018 22:08, randy wrote:
> Hello , I’ve the following c++ call that gives me an “ Invalid Argument
> “ error :
>
> int Asio_Send_Pck(int iSendt,int Lsocket,char * Lbuff,int Len)

I already gave you an answer when you posted this on the devel list.

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users