Get protocol to use through attribute defined in subtype

- __PACKAGE__ apparently refers to the supertype package
- this fix allows use of UDP to connect to server