2
0

events.py 298 B

1234567891011121314151617181920
  1. #!/usr/bin/env python
  2. import string
  3. import sys
  4. from ESL import *
  5. con = ESLconnection("localhost","8021","ClueCon")
  6. #are we connected?
  7. if con.connected:
  8. con.events("plain", "all");
  9. while 1:
  10. #my $e = $con->recvEventTimed(100);
  11. e = con.recvEvent()
  12. if e:
  13. print e.serialize()