|
@@ -53,6 +53,7 @@ class tcp_base(object):
|
53
|
53
|
LOG_PREFIX = 'TCP_IP:'
|
54
|
54
|
RX_LENGTH = 0xff
|
55
|
55
|
COM_TIMEOUT = 0.5
|
|
56
|
+ IS_CLIENT = False
|
56
|
57
|
|
57
|
58
|
def __init__(self, host, port, rx_log_lvl=logging.INFO):
|
58
|
59
|
self.host = host
|
|
@@ -289,6 +290,8 @@ class tcp_client(tcp_base):
|
289
|
290
|
|
290
|
291
|
.. literalinclude:: ../../tcp_socket/_examples_/tcp_socket__tcp_client.log
|
291
|
292
|
"""
|
|
293
|
+ IS_CLIENT = True
|
|
294
|
+
|
292
|
295
|
def __connect__(self):
|
293
|
296
|
if self.__socket__ is None:
|
294
|
297
|
# Create a TCP/IP socket
|