Mercurial > libervia-backend
comparison src/core/xmpp.py @ 2113:9c861d07b5b6
core: added sessionGetInfos bridge method to retrieve various data on current profile session + client.started keep start time
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 05 Jan 2017 22:22:13 +0100 |
parents | 2d633b3c923d |
children | f0bc29dc8157 |
comparison
equal
deleted
inserted
replaced
2112:877d0a2d0d86 | 2113:9c861d07b5b6 |
---|---|
42 implements(iwokkel.IDisco) | 42 implements(iwokkel.IDisco) |
43 | 43 |
44 def __init__(self, host_app, profile, user_jid, password, host=None, port=C.XMPP_C2S_PORT, max_retries=C.XMPP_MAX_RETRIES): | 44 def __init__(self, host_app, profile, user_jid, password, host=None, port=C.XMPP_C2S_PORT, max_retries=C.XMPP_MAX_RETRIES): |
45 # XXX: DNS SRV records are checked when the host is not specified. | 45 # XXX: DNS SRV records are checked when the host is not specified. |
46 # If no SRV record is found, the host is directly extracted from the JID. | 46 # If no SRV record is found, the host is directly extracted from the JID. |
47 self.started = time.time() | |
47 if sys.platform == "android": | 48 if sys.platform == "android": |
48 # FIXME: temporary hack as SRV is not working on android | 49 # FIXME: temporary hack as SRV is not working on android |
49 # TODO: remove this hack and fix SRV | 50 # TODO: remove this hack and fix SRV |
50 log.info(u"FIXME: Android hack, ignoring SRV") | 51 log.info(u"FIXME: Android hack, ignoring SRV") |
51 host = user_jid.host | 52 host = user_jid.host |