Added protocol switch to the configuration files. TCP and UDP can now be switched on the fly.