Commit ec1d396f authored by Antoine Millet's avatar Antoine Millet
Browse files

Added a property to get the endpoint

parent dd669db6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -88,6 +88,13 @@ class TunnelProtocol(Protocol):
    def socket(self):
        return self._socket

    @property
    def endpoint(self):
        '''
        Return the tunnel endpoint.
        '''
        return self._endpoint

    def end_of_message(self):
        '''
        Handle inbound data from the :class:`RpcConnection` peer and place it