CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2016
    Posts
    1

    Boost::Asio Server reads blank message from client, even after the write handle finis

    I try to write an async message to the server from my client code, the write handler gets called with the correct bytes sent; however, the server receives 0 bytes.

    Cliente output:
    Code:
    You are connected 
    You received the following message from the server: Sat Aug 20 17:42:01 2016 
    Sending...
    Server output:
    Code:
    Server is online! 
    127.0.0.1:51973 connected! 
    Client has received the messaged. 
    You received the following message from the server:
    server source: http://pastebin.com/h9ty5N9w

    client source: http://pastebin.com/yv2z4na0

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Boost::Asio Server reads blank message from client, even after the write handle f

    Please, attach your code snippets to your post in this Forum.
    Also read the Announcement: http://forums.codeguru.com/announcement.php?f=7
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured