Boost logo

Boost :

Subject: [boost] Invalid arguments
From: randy (randydom_at_[hidden])
Date: 2018-07-12 08:12:07


I’ve the following function but i get invalid arguments error , can please
someone tell me where’s this invalid param or argument :

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;

};


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