Example #1
0
 def _parseClient(self,
                  reactor,
                  host,
                  port=None,
                  api=None,
                  apiEndpoint=None,
                  **kwargs):
     api, apiEndpoint = getApi(api, apiEndpoint, self._apiParsers)
     return self._apiParsers[api](self, reactor, host, port and int(port)
                                  or None, apiEndpoint, **kwargs)
Example #2
0
 def _parseServer(self,
                  reactor,
                  keyfile,
                  port=None,
                  api=None,
                  apiEndpoint=None,
                  **kwargs):
     api, apiEndpoint = getApi(api, apiEndpoint, self._apiParsers)
     return self._apiParsers[api](self, reactor, keyfile, port and int(port)
                                  or None, apiEndpoint, **kwargs)
Example #3
0
 def _parseServer(self, reactor, keyfile, port=None,
                  api=None, apiEndpoint=None, **kwargs):
     api, apiEndpoint = getApi(api, apiEndpoint, self._apiParsers)
     return self._apiParsers[api](self, reactor, keyfile,
                                  port and int(port) or None,
                                  apiEndpoint, **kwargs)
Example #4
0
 def _parseClient(self, reactor, host, port=None,
                  api=None, apiEndpoint=None, **kwargs):
     api, apiEndpoint = getApi(api, apiEndpoint, self._apiParsers)
     return self._apiParsers[api](self, reactor, host,
                                  port and int(port) or None,
                                  apiEndpoint, **kwargs)