split socket into udp and tcp