##// END OF EJS Templates
Trying frame without semicolon.
imanay -
r101:102
parent child
Show More
@@ -2,17 +2,19
2 No newline at end of file
2
3 class ABSClient: No newline at end of file
3 class ABSClient:
4
4
No newline at end of file
5 def __init__(self,ipSource="192.168.1.117", iDSource="Clnt_01", ipDestino="192.168.1.117", iDDestino = "CeCnMod", portDestino=7000): No newline at end of file
5 def __init__(self,ipSource="localhost", ipDestino="192.168.1.117", portDestino=7000): No newline at end of file
6 No newline at end of file
6
7 self.ipSource = ipSource No newline at end of file
7 self.ipSource = ipSource
8 self.iDSource = iDSource No newline at end of file
8 self.ipDestino = ipDestino No newline at end of file
9 self.ipDestino = ipDestino
10 self.iDDestino = iDDestino No newline at end of file
9 self.portDestino = portDestino No newline at end of file
11 self.portDestino = portDestino
10 No newline at end of file
12
11 self.createObjects() No newline at end of file
13 self.createObjects()
12 No newline at end of file
14
13 def createObjects(self): No newline at end of file
15 def createObjects(self):
14
16
No newline at end of file
17 self.commObj = library3.TCPComm(self.ipSource, self.iDSource, self.ipDestino, self.iDDestino, self.portDestino) No newline at end of file
15 self.commObj = library3.TCPComm(self.ipSource, self.ipDestino, self.portDestino) No newline at end of file
16 self.wFiles = library3.FilesStuff() No newline at end of file
18 self.wFiles = library3.FilesStuff()
17 No newline at end of file
19
18 def __ConnectionWithCentralControl(self, cmd, data): No newline at end of file
20 def __ConnectionWithCentralControl(self, cmd, data):
@@ -9,18 +9,20
9 __HEADER = "JRO" No newline at end of file
9 __HEADER = "JRO"
10 __TYPE = "ABS" No newline at end of file
10 __TYPE = "ABS"
11
11
No newline at end of file
12 def __init__(self, ipSource, iDSource, ipDestino, iDDestino, portDestino, asServer=False): No newline at end of file
12 def __init__(self, ipSource, ipDestino, portDestino, asServer=False): No newline at end of file
13 No newline at end of file
13
14 self.ipSource = ipSource No newline at end of file
14 self.ipSource = ipSource
15 self.iDSource = iDSource No newline at end of file
15 self.ipDestino = ipDestino No newline at end of file
16 self.ipDestino = ipDestino
17 self.iDDestino = iDDestino No newline at end of file
16 self.portDestino = portDestino No newline at end of file
18 self.portDestino = portDestino
17 self.addr = (ipDestino,portDestino) No newline at end of file
19 self.addr = (ipDestino,portDestino)
18 No newline at end of file
20
19 self.sc = "none" No newline at end of file
21 self.sc = "none"
20 self.answer = "none" #test No newline at end of file
22 self.answer = "none" #test
21 self.asServer = False
23 self.asServer = False
No newline at end of file
24 self.len = "000000"
22 self.len = 0
No newline at end of file
No newline at end of file
25 self.crc = "0" No newline at end of file
23 self.crc = 0 No newline at end of file
24 No newline at end of file
26
25 self.openSocket(asServer) No newline at end of file
27 self.openSocket(asServer)
26 No newline at end of file
28
@@ -22,8 +22,8
22 def createObjects(self): No newline at end of file
22 def createObjects(self):
23 No newline at end of file
23
24 asServer = True
24 asServer = True
No newline at end of file
25 self.commServerObj = library3.TCPComm("Central_Control", "CeCnMod", self.ipDestino, "CnMod01", self.portDestino, asServer)
25 self.commServerObj = library3.TCPComm("Central_Control", self.ipDestino, self.portDestino, asServer)
No newline at end of file
No newline at end of file
26 self.commClientObj = library3.TCPComm("Central_Control", "CeCnMod", self.ipDestino2, "CnMod01", self.portDestino2) No newline at end of file
26 self.commClientObj = library3.TCPComm("Central_Control", self.ipDestino2, self.portDestino2) No newline at end of file
27 No newline at end of file
27
28 def waitRequest(self): No newline at end of file
28 def waitRequest(self):
29 No newline at end of file
29
General Comments 0
You need to be logged in to leave comments. Login now