##// END OF EJS Templates
First beam is loaded by default after sending the beam file to the control modules.
First beam is loaded by default after sending the beam file to the control modules.

File last commit:

r59:60
r231:232
Show More
server.py
14 lines | 348 B | text/x-python | PythonLexer
import socket
import time
dgramSock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
dgramSock.bind( ('192.168.1.117', 7000) )
while 1:
msg, (addr, port) = dgramSock.recvfrom( 100 )
# time.sleep(30) #not ok at the client
# time.sleep(10) #ok
print msg + 'to: ' + addr + ':' + str (port)
dgramSock.sendto( msg, (addr, port) )