Fix accessors for socket classes