if/case tcp/udp