Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Set fastrouter mapping (not tested)
import socket
import struct
ip = ''
port = 5005
payload = {
'key': '',
'address': '',
msg = ''
for k, v in payload.iteritems():
msg += struct.pack('<h', len(k)) + k
msg += struct.pack('<h', len(v)) + v
msg = struct.pack('<BhB', 224, len(msg), 0) + msg
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(msg, (ip, port))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.