void UnixLocalSessionState::implWrite( AsioSessionState &toBeNotified, const char * buffer, std::size_t bufferLen) { ASIO_NS::async_write( *mSocketPtr, ASIO_NS::buffer(buffer, bufferLen), WriteHandler(toBeNotified.sharedFromThis())); }
void implWrite(AsioSessionState &toBeNotified, const char * buffer, std::size_t bufferLen) { boost::asio::async_write( *mSocketPtr, boost::asio::buffer(buffer, bufferLen), boost::bind( &AsioSessionState::onWriteCompletion, toBeNotified.sharedFromThis(), boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred)); }