Std::cerr << "handle_write Bytes sent: " << bytes_transferred << std::endl Std::cerr << "handle_write Error: " << ssage() << std::endl Void handle_write ( const boost::system::error_code & error, size_t bytes_transferred ) Std::cout << "Reply bytesize " << bytes << std::endl īoost::asio::placeholders::bytes_transferred Std::size_t bytes = str.size() * sizeof( std::string::value_type ) ![]() If ( auto m = handleNewMessage( _message ) ) I have a very simple method, with the purpose of responding to an incoming message, and then closing the connection: void respond ( const std::string message )Ĭontroller & controller = Controller::Singleton()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |