what is the advantage of using udp or tcp for the same server? or, why you want to shift between udp or tcp?

This can be done using the switch but I think you need to write a script. Not difficult in fact, unless you really think this is useful.