network classes and interfaces shared by client and server