Skip to content

Instantly share code, notes, and snippets.

@prasincs
Created May 25, 2009 07:22
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 prasincs/117426 to your computer and use it in GitHub Desktop.
Save prasincs/117426 to your computer and use it in GitHub Desktop.
import socket
import pymedia.audio.sound as sound,time
PORT = 3001
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(("",PORT))
s.listen(5)
while 1:
c, addr = s.accept()
while 1:
c, addr = s.accept()
while 1:
data = c.recv(1024)
snd1.play(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment