Updated server and client to use the updated network class with tcp/udp.