New module for common networking code between client and server