Updated network classes. Made infrastructure for supporting both UDP and TCP