##// END OF EJS Templates

File last commit:

r56:57
r58:59
Show More
server.py
9 lines | 207 B | text/x-python | PythonLexer
import socket
dgramSock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
dgramSock.bind( ('', 23000) )
while 1:
msg, (addr, port) = dgramSock.recvfrom( 100 )
dgramSock.sendto( msg, (addr, port) )