Example #1
0
 def connection_status(self):
     assert self.running # startService builds _introducer_reconnector
     irc = self._introducer_reconnector
     last_received = (self._publisher.getDataLastReceivedAt()
                      if self._publisher
                      else None)
     return connection_status.from_foolscap_reconnector(irc, last_received)
Example #2
0
 def get_connection_status(self):
     last_received = None
     if self._rref:
         last_received = self._rref.getDataLastReceivedAt()
     return connection_status.from_foolscap_reconnector(
         self._reconnector, last_received)
 def get_connection_status(self):
     last_received = None
     if self.rref:
         last_received = self.rref.getDataLastReceivedAt()
     return connection_status.from_foolscap_reconnector(self._reconnector,
                                                        last_received)