deltapigz at telocity.com
Sat Aug 3 00:06:57 CEST 2002
im just sinking my teeth into the asyncore module and have followed the
documentation closely and have googled around to no avail, and have been
unable to get it working. no errors are raised, nothing at that, and the
events are not being triggered, am i missing something in my code?
by the way, the echo server it is conencting to acknowledges its presence
and does send back data.
any help would greatly be appreciated.
-- paste --
import asyncore, socket
def __init__(self, ip, port):
self.buffer = 'test'
print '[SOCKET] Disconnected'
return (len(self.buffer) > 0)
sent = self.send(self.buffer)
self.buffer = self.buffer[sent:]
x = PYCHAT_SOCKET('126.96.36.199', 7)
More information about the Python-list