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)
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)