allow listening protocol selection from command line

hi,
this should let the user pick the listening protocol on the command line.
FWIW I think it should default to "any" but that's another change.

thanks,
filippo