2009-02-16 19:27:28 -05:00
|
|
|
require ESL;
|
|
|
|
|
2009-02-20 03:39:08 -05:00
|
|
|
my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
|
2009-02-16 19:27:28 -05:00
|
|
|
|
|
|
|
$con->events("plain", "all");
|
|
|
|
|
2009-03-02 15:52:46 -05:00
|
|
|
while($con->connected()) {
|
2009-02-16 19:27:28 -05:00
|
|
|
#my $e = $con->recvEventTimed(100);
|
|
|
|
my $e = $con->recvEvent();
|
|
|
|
|
|
|
|
if ($e) {
|
2009-03-02 15:52:46 -05:00
|
|
|
#print $e->serialize();
|
|
|
|
my $h = $e->firstHeader();
|
|
|
|
while ($h) {
|
|
|
|
printf "Header: [%s] = [%s]\n", $h, $e->getHeader($h);
|
|
|
|
$h = $e->nextHeader();
|
|
|
|
}
|
|
|
|
|
2009-02-16 19:27:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|