Switch UDP and TCP protocols with WiFly