class socket