Menu

#2 Recieve buffer

open
nobody
None
5
2002-07-26
2002-07-26
No

The Recieve buffer does not get cleared on a PING
event, this prevents further decoding of future messages.

Here is my snippet with the correction:

if buffer[:4] == "PING":
self.debug("PING!")
self.servercmd("PONG :%s" % buffer[6:])
self.debug("PONG! id (%s)" % buffer[6:])
buffer = ''

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.