Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Set fastrouter mapping (not tested)
import socket
import struct
ip = '127.0.0.1'
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.