I\'m trying to hack a client together in C++ using Google\'s Protocol Buffers and boost::asio.
My problem is that I don\'t know how I can feed the protobuf message t
I don't know much about Google's Protocol buffer, but try the following:
PlayerInfo info; info.set_name(name); // ... boost::asio::streambuf b; std::ostream os(&b); info.SerializeToOstream(&os); boost::asio::write(*sock, b);