import socket import struct import traceback import time import sys import importlib # --- for linux # sys.path.append('/home/server/repositories/repositories/sri-project.demo-py/sri-server-bg03') # sys.path.append('/home/server/repositories/repositories/sri-project.demo-py/3rdparty') # host, port = '127.0.0.1', 20916 # host, port = '127.0.0.1', 20917 # --- for windows sys.path.append(r'E:\casper\repositories\repositories\sri-project.demo-py\sri-server-bg03') sys.path.append(r'E:\casper\repositories\repositories\sri-project.demo-py\3rdparty') host, port = '58.34.94.178', 20916 # host, port = '58.34.94.178', 20917 protobuf = importlib.import_module(f"xprotobuf.protocol_pb2") methods = importlib.import_module(f"xlib") def test(): head_sequence = '