From: <lui...@ne...> - 2004-12-25 02:57:20
|
Hello, The current support for asynchronous events seems to be lacking. There=20= is no mechanism to allow waiting for both xmppy and external events.=20 For instance, if you have a GUI that might, at some arbitrary point in=20= time, send a message then you have to specify a low timeout in=20 client.Process(), so that you can keep checking for xmppy events and=20 GUI events. There needs to be a way of interrupting Process(). Using a=20= low timeout is a waste of system resources and making the timeout=20 bigger will result in latency processing external requests. How about something like specifying a file descriptor (or something=20 more Pythonic) in Process(), that will interrupt the waiting when data=20= is available? That needs to be addressed, if more than reactive clients are to be=20 built. Thanks. Merry Xmas :) -- Lu=EDs Marques= |