Add a getter to the handle of the socket.