##// END OF EJS Templates
imanay -
r131:132
parent child
Show More
@@ -115,8 +115,14
115 def waitAsClient(self, nbytes = 1024): No newline at end of file
115 def waitAsClient(self, nbytes = 1024):
116 print "\nWaiting the server." No newline at end of file
116 print "\nWaiting the server."
117 # Short data through ethernet No newline at end of file
117 # Short data through ethernet
118 try: No newline at end of file
118 trama_rx = self.socket_c.recv(nbytes) No newline at end of file
119 trama_rx = self.socket_c.recv(nbytes)
119 lng = int(trama_rx[20:26]) No newline at end of file
120 lng = int(trama_rx[20:26])
121 except:
No newline at end of file
122 print "Waiting error"
No newline at end of file
123 trama_rx = "Error"
No newline at end of file
124 lng = 0
No newline at end of file
125 else: No newline at end of file
120 print "\nThis socket has received this data: " + str(trama_rx) No newline at end of file
126 print "\nThis socket has received this data: " + str(trama_rx)
121 No newline at end of file
127
122 return trama_rx, lng No newline at end of file
128 return trama_rx, lng
@@ -1,8 +1,8
1 import file No newline at end of file
1 import file
2 from client3 import * No newline at end of file
2 from client3 import *
3
3
No newline at end of file
4 opt = "0" No newline at end of file
4 ns = "0" No newline at end of file
5 No newline at end of file
5
6 absObj = ABSClient(ipDestino="10.10.10.97") No newline at end of file
6 absObj = ABSClient(ipDestino="10.10.10.97")
7 #absObj = ABSClient()
7 #absObj = ABSClient()
No newline at end of file
8 absObj.getControlModulePhase(opt) No newline at end of file
8 absObj.getControlModulePhase(ns) No newline at end of file
@@ -11,7 +11,7
11 192.168.1.9 [0 0] No newline at end of file
11 192.168.1.9 [0 0]
12 192.168.1.10 [0 0] No newline at end of file
12 192.168.1.10 [0 0]
13 192.168.1.11 [0 0]
13 192.168.1.11 [0 0]
No newline at end of file
14 192.168.1.12 [1 1] No newline at end of file
14 192.168.1.12 [0 0] No newline at end of file
15 192.168.1.13 [0 0] No newline at end of file
15 192.168.1.13 [0 0]
16 192.168.1.14 [0 0] No newline at end of file
16 192.168.1.14 [0 0]
17 192.168.1.15 [0 0] No newline at end of file
17 192.168.1.15 [0 0]
General Comments 0
You need to be logged in to leave comments. Login now