util/Zeroconf.py
changeset 1749 d73b64672238
parent 1747 6046ffa2280f
child 1752 d14ff9d7eb76
equal deleted inserted replaced
1748:ba5f64fe0e00 1749:d73b64672238
  1555             self.socket.close()
  1555             self.socket.close()
  1556 
  1556 
  1557 # Test a few module features, including service registration, service
  1557 # Test a few module features, including service registration, service
  1558 # query (for Zoe), and service unregistration.
  1558 # query (for Zoe), and service unregistration.
  1559 
  1559 
       
  1560 
  1560 if __name__ == '__main__':
  1561 if __name__ == '__main__':
  1561     print "Multicast DNS Service Discovery for Python, version", __version__
  1562     print "Multicast DNS Service Discovery for Python, version", __version__
  1562     r = Zeroconf()
  1563     r = Zeroconf()
  1563     print "1. Testing registration of a service..."
  1564     print "1. Testing registration of a service..."
  1564     desc = {'version': '0.10', 'a': 'test value', 'b': 'another value'}
  1565     desc = {'version': '0.10', 'a': 'test value', 'b': 'another value'}