CAsyncSocket sometime loss packet

  • Thread starter Thread starter 삼삼삼
  • Start date Start date

삼삼삼

Guest
I am using CAsyncsocket. When 100 packets are received from other devices, sometimes 95 or 98 of 100 packets are not received randomly.
I have confirmed that packets are coming into wireshirk, but MFC does not receive them.
I saw a similar phenomenon when I Googled it. The solution was to use setsockopt to increase the buffer size, to find the length of the packet before reading the packet, and then to read only the arriving packet. Is there any other way?

Continue reading...
 
Back
Top