##// END OF EJS Templates
imanay -
r58:59
parent child
Show More
@@ -8,7 +8,7
8 8
9 9 class ABSClient:
10 10
11 def __init__(self,ipSource="localhost", ipDestino="192.168.1.255", portDestino=7000):
11 def __init__(self,ipSource="localhost", ipDestino="192.168.1.117", portDestino=7000):
12 12
13 13 self.ipSource = ipSource
14 14 self.ipDestino = ipDestino
@@ -476,12 +476,12
476 476 filename = "experimento1.abs"
477 477
478 478 absObj = ABSClient()
479 # absObj.sendFile(filename)
479 absObj.sendFile(filename)
480 480 # absObj.changeBeam("0")
481 481 # absObj.changeBeam("1")
482 482 # absObj.changeBeam("2")
483 483 # absObj.changeBeam("3")
484 absObj.changeBeam("4")
484 # absObj.changeBeam("4")
485 485 # absObj.changeBeam("5")
486 486 # absObj.changeBeam("6")
487 487 # absObj.changeBeam("7")
@@ -1,7 +1,13
1 1 import socket
2 import select
2 3
3 4 dgramSock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
4 5
5 dgramSock.sendto( "Hello World\n", ('', 23000) )
6 print dgramSock.recv( 100 )
6 #dgramSock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
7 #dgramSock.setblocking(0)
8 dgramSock.sendto( "Hello World\n", ('192.168.1.117', 7000) )
9 ready = select.select ([dgramSock],[],[],35)
10 if ready[0]:
11 print dgramSock.recv( 100 )
12
7 13 dgramSock.close()
General Comments 0
You need to be logged in to leave comments. Login now