socket class done

more or less…