code: def get_connected(self):
          
          connected = c_int32()
          result = self.library.Cli_GetConnected(self.pointer, byref(connected))
          check_error(result, context="client")
          return bool(connected)
docs: Returns the connection status
  
          :returns: a boolean that indicates if connected.