dump_events.pl 270 B

123456789101112
  1. #!/usr/bin/perl
  2. require ESL;
  3. my $command = shift;
  4. my $args = join(" ", @ARGV);
  5. my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
  6. $con->events("plain","all");
  7. while ( $con->connected() ) {
  8. my $e = $con->recvEventTimed(0);
  9. print $e->serialize;
  10. }