Take the 2-minute tour ×  I have server in C++ writen with
boost.asio and php client. when i send over small amount of data
i get all the data but when i send long string i loose most of
it.  Here is the part where i send data from my server, it says
i have sent out 65536 bytes  void handle_write(const
boost::system::error_code& /*error*/,             size_t
size/*bytes_transferred*/) {         cout <<size<<endl;     void
handler_read(const boost::system::error_code&, std::size_t size)
{         istream is(&buffer);         string myString;
getline(is, myString);          Manager myManager(myString);
string response = myManager.getResponse();
boost::bind(&tcp_connection::handle_write, shared_from_this(),
Here i make the string i will be sending  string getMap(string
name, string pass) {             if (name == "admin" && pass ==
"123") {                 string response = "";
ConvertTypes types;                 response =
types.intToString(MAP_HEIGHT) + " ";