parameters: (self, endpoint)
docstring: Parameters:
          endpoint: a tuple (ip, port)
docstring_summary: Parameters:
          endpoint: a tuple (ip, port)
docstring_tokens: Parameters : endpoint : a tuple ( ip port )
function: def __init__(self, endpoint):
          '''
          Parameters:
          endpoint: a tuple (ip, port)
          '''
          self.endpoint = endpoint
          self.sock = None # if socket == None, means client is not connected
          self.raw_message_regexp = re.compile(b'(\d{1,8}):(.*)') # A binary regexp
          self.message_id = 0
          self.wait_response = threading.Event()
function_tokens: def __init__ ( self , endpoint ) : self . endpoint = endpoint self . sock = None # if socket == None, means client is not connected self . raw_message_regexp = re . compile ( b'(\d{1,8}):(.*)' ) # A binary regexp self . message_id = 0 self . wait_response = threading . Event ( )