Some utility classes for networking