I'm looking for a way to send a packet made of a custom data structure through a socket with Boost Asio. At the moment I understand that you can send a string with the standard boost asio buffer (in the method boost::asio::write(..) ).
Is it possible to, for example, send the data from a filled in struct to the server or to a client? If yes, how do I need to do that because I can't find documentation about this.
buffer
). My answer links to the parts of the documentation he couldn't find. But I see what you're missing - context and sample code :) – sehe