split network.h into udp and tcp