hgext/zeroconf/Zeroconf.py
branchstable
changeset 51167 b79f13d6ef25
parent 49293 e3143ab9dadb
equal deleted inserted replaced
51166:849745d7da89 51167:b79f13d6ef25
  1857     print(b"1. Testing registration of a service...")
  1857     print(b"1. Testing registration of a service...")
  1858     desc = {b'version': b'0.10', b'a': b'test value', b'b': b'another value'}
  1858     desc = {b'version': b'0.10', b'a': b'test value', b'b': b'another value'}
  1859     info = ServiceInfo(
  1859     info = ServiceInfo(
  1860         b"_http._tcp.local.",
  1860         b"_http._tcp.local.",
  1861         b"My Service Name._http._tcp.local.",
  1861         b"My Service Name._http._tcp.local.",
  1862         socket.inet_aton(b"127.0.0.1"),
  1862         socket.inet_aton("127.0.0.1"),
  1863         1234,
  1863         1234,
  1864         0,
  1864         0,
  1865         0,
  1865         0,
  1866         desc,
  1866         desc,
  1867     )
  1867     )