Created
August 8, 2011 16:14
-
-
Save kpricorn/1132070 to your computer and use it in GitHub Desktop.
upnp_ssdp_notify.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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