def lostRemote(self, rmtaddr):
        """[optional] Called by adminstrative levels (e.g. convention.py) to
           indicate that the indicated remote address is no longer
           accessible.  This is customarily used only by the Admin in
           "Admin Routing" scenarios when the remote is shutdown or
           de-registered to allow the transport to cleanup (e.g. close
           open sockets, etc.).
        """
        if hasattr(self, '_openSockets'):
            if rmtaddr in self._openSockets:
                _safeSocketShutdown(self._openSockets[rmtaddr])
                del self._openSockets[rmtaddr]
        for each in [i for i in self._transmitIntents
                     if self._transmitIntents[i].targetAddr == rmtaddr]:
            self._cancel_fd_ops(each)
        for each in [i for i in self._incomingSockets
                     if self._incomingSockets[i].fromAddress == rmtaddr]:
            self._cancel_fd_ops(each)
dataset/ETHPy150Open godaddy/Thespian/thespian/system/transport/TCPTransport.py/TCPTransport.lostRemote/original