Uncompilable, but pulled socket stuff into new class