See documentation for IRC.__init__.
"""
+ self.debug(2, "process_data()")
for s in sockets:
for c in self.connections:
if s == c._get_socket():
incoming data, if there are any. If that seems boring, look
at the process_forever method.
"""
+ self.debug(2, "process_once()")
sockets = map(lambda x: x._get_socket(), self.connections)
sockets = filter(lambda x: x != None, sockets)
if sockets:
timeout -- Parameter to pass to process_once.
"""
+ self.debug(1, "process_forever(timeout=%s)" % (timeout))
while 1:
self.process_once(timeout)