Index: trunk/absroot/source/abspy/abscontrol/client.py =================================================================== diff --git a/trunk/absroot/source/abspy/abscontrol/client.py b/trunk/absroot/source/abspy/abscontrol/client.py --- a/trunk/absroot/source/abspy/abscontrol/client.py (revision 58) +++ b/trunk/absroot/source/abspy/abscontrol/client.py (revision 59) @@ -8,7 +8,7 @@ class ABSClient: - def __init__(self,ipSource="localhost", ipDestino="192.168.1.255", portDestino=7000): + def __init__(self,ipSource="localhost", ipDestino="192.168.1.117", portDestino=7000): self.ipSource = ipSource self.ipDestino = ipDestino @@ -476,12 +476,12 @@ filename = "experimento1.abs" absObj = ABSClient() -# absObj.sendFile(filename) + absObj.sendFile(filename) # absObj.changeBeam("0") # absObj.changeBeam("1") # absObj.changeBeam("2") # absObj.changeBeam("3") - absObj.changeBeam("4") +# absObj.changeBeam("4") # absObj.changeBeam("5") # absObj.changeBeam("6") # absObj.changeBeam("7") Index: trunk/absroot/source/abspy/test/udp/client.py =================================================================== diff --git a/trunk/absroot/source/abspy/test/udp/client.py b/trunk/absroot/source/abspy/test/udp/client.py --- a/trunk/absroot/source/abspy/test/udp/client.py (revision 58) +++ b/trunk/absroot/source/abspy/test/udp/client.py (revision 59) @@ -1,7 +1,13 @@ import socket +import select dgramSock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM ) -dgramSock.sendto( "Hello World\n", ('', 23000) ) -print dgramSock.recv( 100 ) +#dgramSock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) +#dgramSock.setblocking(0) +dgramSock.sendto( "Hello World\n", ('192.168.1.117', 7000) ) +ready = select.select ([dgramSock],[],[],35) +if ready[0]: + print dgramSock.recv( 100 ) + dgramSock.close()