use right socket class