Update examples/example-callbacks.pl

Automatically select supported protocol.