Share common networking code