コード例 #1
0
 def get_info(self):
     d = Connection.get_info(self)
     d["protocol-type"] = "websocket"
     ws = self._socket
     if ws:
         d.update({
             "sub-protocol": ws.getsubprotocol() or "",
             "headers": ws.getheaders() or {},
             "fileno": ws.fileno(),
             "status": ws.getstatus(),
             "connected": ws.connected,
         })
     return d
コード例 #2
0
 def get_info(self):
     d = Connection.get_info(self)
     d["type"] = "named-pipe"
     d["closed"] = self.pipe_handle is None
     return d
コード例 #3
0
 def get_info(self):
     d = Connection.get_info(self)
     d["type"] = "named-pipe"
     return d
コード例 #4
0
ファイル: connection.py プロジェクト: svn2github/Xpra
 def get_info(self):
     d = Connection.get_info(self)
     d["type"] = "named-pipe"
     d["closed"] = self.pipe_handle is None
     return d
コード例 #5
0
ファイル: connection.py プロジェクト: svn2github/Xpra
 def get_info(self):
     d = Connection.get_info(self)
     d["type"] = "named-pipe"
     return d