@@ -2,17 +2,19 | |||
|
2 | 2 | No newline at end of file |
|
3 | 3 | class ABSClient: No newline at end of file |
|
4 | 4 | |
|
5 | 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 | 6 | No newline at end of file |
|
7 | 7 | self.ipSource = ipSource No newline at end of file |
|
8 | self.iDSource = iDSource No newline at end of file | |
|
8 | 9 | self.ipDestino = ipDestino No newline at end of file |
|
10 | self.iDDestino = iDDestino No newline at end of file | |
|
9 | 11 | self.portDestino = portDestino No newline at end of file |
|
10 | 12 | No newline at end of file |
|
11 | 13 | self.createObjects() No newline at end of file |
|
12 | 14 | No newline at end of file |
|
13 | 15 | def createObjects(self): No newline at end of file |
|
14 | 16 | |
|
17 | No newline at end of file | |
|
15 | self.commObj = library3.TCPComm(self.ipSource, self.ipDestino, self.portDestino) No newline at end of file | |
|
16 | 18 | self.wFiles = library3.FilesStuff() No newline at end of file |
|
17 | 19 | No newline at end of file |
|
18 | 20 | def __ConnectionWithCentralControl(self, cmd, data): No newline at end of file |
@@ -9,18 +9,20 | |||
|
9 | 9 | __HEADER = "JRO" No newline at end of file |
|
10 | 10 | __TYPE = "ABS" No newline at end of file |
|
11 | 11 | |
|
12 | No newline at end of file | |
|
12 | def __init__(self, ipSource, ipDestino, portDestino, asServer=False): No newline at end of file | |
|
13 | 13 | No newline at end of file |
|
14 | 14 | self.ipSource = ipSource No newline at end of file |
|
15 | self.iDSource = iDSource No newline at end of file | |
|
15 | 16 | self.ipDestino = ipDestino No newline at end of file |
|
17 | self.iDDestino = iDDestino No newline at end of file | |
|
16 | 18 | self.portDestino = portDestino No newline at end of file |
|
17 | 19 | self.addr = (ipDestino,portDestino) No newline at end of file |
|
18 | 20 | No newline at end of file |
|
19 | 21 | self.sc = "none" No newline at end of file |
|
20 | 22 | self.answer = "none" #test No newline at end of file |
|
21 | 23 | self.asServer = False |
|
24 | No newline at end of file | |
|
22 | self.len = 0 | |
|
No newline at end of file | ||
|
25 | No newline at end of file | |
|
23 | self.crc = 0 No newline at end of file | |
|
24 | 26 | No newline at end of file |
|
25 | 27 | self.openSocket(asServer) No newline at end of file |
|
26 | 28 | No newline at end of file |
@@ -22,8 +22,8 | |||
|
22 | 22 | def createObjects(self): No newline at end of file |
|
23 | 23 | No newline at end of file |
|
24 | 24 | asServer = True |
|
25 | No newline at end of file | |
|
25 | self.commServerObj = library3.TCPComm("Central_Control", self.ipDestino, self.portDestino, asServer) | |
|
No newline at end of file | ||
|
26 | No newline at end of file | |
|
26 | self.commClientObj = library3.TCPComm("Central_Control", self.ipDestino2, self.portDestino2) No newline at end of file | |
|
27 | 27 | No newline at end of file |
|
28 | 28 | def waitRequest(self): No newline at end of file |
|
29 | 29 | No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now