hgext/zeroconf/__init__.py
changeset 7088 58b7b5ef6cd0
parent 7087 62c71741ae7d
child 7216 292fb2ad2846
equal deleted inserted replaced
7087:62c71741ae7d 7088:58b7b5ef6cd0
    63     server.registerService(svc)
    63     server.registerService(svc)
    64 
    64 
    65     # advertise to Mercurial clients
    65     # advertise to Mercurial clients
    66     svc = Zeroconf.ServiceInfo('_hg._tcp.local.',
    66     svc = Zeroconf.ServiceInfo('_hg._tcp.local.',
    67                                name + '._hg._tcp.local.',
    67                                name + '._hg._tcp.local.',
       
    68                                server = host,
    68                                port = port,
    69                                port = port,
    69                                properties = {'description': desc,
    70                                properties = {'description': desc,
    70                                              'path': "/" + path},
    71                                              'path': "/" + path},
    71                                address = localip, weight = 0, priority = 0)
    72                                address = localip, weight = 0, priority = 0)
    72     server.registerService(svc)
    73     server.registerService(svc)