MCPcopy Create free account
hub / github.com/Syncplay/syncplay / SyncClientFactory

Class SyncClientFactory

syncplay/client.py:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45from syncplay.protocols import SyncClientProtocol
46from syncplay.utils import isMacOS
47class SyncClientFactory(ClientFactory):
48 def __init__(self, client, retry=constants.RECONNECT_RETRIES):
49 self._client = client
50 self.retry = retry
51 self._timesTried = 0
52
53 def buildProtocol(self, addr):
54 self._timesTried = 0
55 return SyncClientProtocol(self._client)
56
57 def stopRetrying(self):
58 self._client._reconnectingService.stopService()
59 self._client.ui.showErrorMessage(getMessage("disconnection-notification"))
60
61
62class SyncplayClient(object):

Callers 2

__init__Method · 0.85
startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected