Skip to content

Instantly share code, notes, and snippets.

View guilt's full-sized avatar
🎯
Focusing

Karthik Kumar Viswanathan guilt

🎯
Focusing
View GitHub Profile
@provegard
provegard / ssdp-test.py
Created December 5, 2011 21:52
Small SSDP server/client test in Python
#!/usr/bin/python
# Python program that can send out M-SEARCH messages using SSDP (in server
# mode), or listen for SSDP messages (in client mode).
import sys
from twisted.internet import reactor, task
from twisted.internet.protocol import DatagramProtocol
SSDP_ADDR = '239.255.255.250'