Added operator== and operator!= to socket.