diff --git a/libs/esl/python/events.py b/libs/esl/python/events.py new file mode 100644 index 0000000000..e7257b79f6 --- /dev/null +++ b/libs/esl/python/events.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +import string +import sys +import pickle + +from ESL import * + +con = ESLconnection("localhost","8021","ClueCon") +#are we connected? + +if con.connected: + + con.events("plain", "all"); + + while 1: + #my $e = $con->recvEventTimed(100); + e = con.recvEvent() + + if e: + print e.serialize()