Skip to content

Instantly share code, notes, and snippets.

@Jonty
Created May 3, 2014 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jonty/a7d95d72073ebbd00c82 to your computer and use it in GitHub Desktop.
Save Jonty/a7d95d72073ebbd00c82 to your computer and use it in GitHub Desktop.
#!/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