Lines Matching refs:constants
33 from . import constants
38 code = sock.connect_ex((peer.address, constants.STATUS_PORT))
43 compression.Send(constants.END_OF_STREAM, sock)
56 pubkey_list = _StatusQuery(peer, [constants.LIST_TRUSTED_PUBKEYS])
59 result = _StatusQuery(peer, [constants.GET_SIGNED_PUBKEY, pubkey])
64 _StatusQuery(peer, [constants.NOTIFY_NEW_TRUSTED] + data)
68 _StatusQuery(peer, [constants.TRUST_YOU_NOW])
72 if _StatusQuery(peer, [constants.DO_YOU_TRUST, pubkey]):
73 result = _StatusQuery(peer, [constants.GET_SIGNED_PUBKEY, pubkey])
84 if action == constants.LIST_TRUSTED_PUBKEYS:
88 elif action == constants.GET_SIGNED_PUBKEY:
92 elif action == constants.NOTIFY_NEW_TRUSTED:
96 elif action == constants.TRUST_YOU_NOW:
100 elif action == constants.DO_YOU_TRUST:
105 compression.Send(constants.END_OF_STREAM, self.request)
110 address = (daemon.ip, constants.STATUS_PORT)