Skip to content

Instantly share code, notes, and snippets.

@kpricorn
Created August 8, 2011 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kpricorn/1132070 to your computer and use it in GitHub Desktop.
Save kpricorn/1132070 to your computer and use it in GitHub Desktop.
upnp_ssdp_notify.py
from twisted.internet import reactor
from coherence.base import Coherence
config = {'interface': 'en0', 'logmode':'warning'}
c = Coherence(config)
def startUPnP():
c.ssdp_server.register('local',
"uuid:<uuid>",
"urn:<urn>",
"http://<ip_on_en0>/rtdevicedesc.xml")
reactor.callWhenRunning(startUPnP)
reactor.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment