socket classes