Exemplo n.º 1
0
    def __init__(self, name, host, port):
        self.avahi = None
        self.debugmode = False
        self.domain = None  # specific domain to browse
        self.stype = '_ssh._tcp'
        self.port = port  # listening port that gets announced
        self.username = name
        self.host = host
        self.txt = {}  # service data
        self.log = Logging()

        #XXX these CBs should be set to None when we destroy the object·
        # (go offline), because they create a circular reference·

        self.service_browser = None
        self.domain_browser = None
        self.bus = None
        self.server = None
        self.contacts = {}  # all current local contacts with data
        self.entrygroup = None
        self.connected = False
        self.users = []
        self.NetworkUsers = []
        self.announced = False
        self.invalid_self_contact = {}