Created
May 3, 2014 12:39
-
-
Save Jonty/a7d95d72073ebbd00c82 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/env/python | |
import socket | |
import string | |
import time | |
recieve_address = ('0.0.0.0', 12000) | |
listen = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
listen.bind(recieve_address) | |
f = open('osc_messages.txt', 'a') | |
while True: | |
data, addr = listen.recvfrom(4096) | |
f.write(data + '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment