Пример #1
0
 def __init__(self, uid, gid, env_options, session_options, socket_dir,
              video_encoder_modules, pings, client_conn, disp_desc,
              client_state, cipher, encryption_key, server_conn, caps,
              message_queue):
     ProxyInstance.__init__(self, session_options, video_encoder_modules,
                            pings, disp_desc, cipher, encryption_key, caps)
     QueueScheduler.__init__(self)
     Process.__init__(self, name=str(client_conn), daemon=False)
     self.client_conn = client_conn
     self.server_conn = server_conn
     self.uid = uid
     self.gid = gid
     self.env_options = env_options
     self.socket_dir = socket_dir
     self.client_state = client_state
     log("ProxyProcess%s",
         (uid, gid, env_options, session_options, socket_dir,
          video_encoder_modules, client_conn, disp_desc,
          ellipsizer(client_state), cipher, encryption_key, server_conn,
          "%s: %s.." % (type(caps), ellipsizer(caps)), message_queue))
     self.message_queue = message_queue
     #for handling the local unix domain socket:
     self.control_socket_cleanup = None
     self.control_socket = None
     self.control_socket_thread = None
     self.control_socket_path = None
     self.potential_protocols = []
     self.max_connections = MAX_CONCURRENT_CONNECTIONS
Пример #2
0
 def __init__(self, session_options, video_encoders, pings, client_proto,
              server_conn, disp_desc, cipher, encryption_key, caps):
     ProxyInstance.__init__(self, session_options, video_encoders, pings,
                            disp_desc, cipher, encryption_key, caps)
     self.client_protocol = client_proto
     self.server_conn = server_conn