Python Forum
UDP Socket: How to clear the buffer and ignore oldes messages
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UDP Socket: How to clear the buffer and ignore oldes messages
#2
This post explains socket use pretty well, and also has sample code for building a message-based protocol.
This is something that your software has to provide.The packets that come over TCP/IP are not guaranteed
to come in order, and duplicate packets may arrive.

Read: http://stackoverflow.com/questions/17667...nt-of-data
Try their solution
Reply


Messages In This Thread
RE: UDP Socket: How to clear the buffer and ignore oldes messages - by Larz60+ - Apr-26-2017, 10:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  struct.error: unpack requires a buffer of 14 bytes upasana 0 8,764 Apr-18-2018, 11:06 AM
Last Post: upasana
  How to use fcntl.ioctl() to get output buffer of socket after sendall() operation apsaxena 0 4,838 Dec-09-2016, 12:44 PM
Last Post: apsaxena

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020