def buildObserver(self, controller, addr): """ @summary: Build RFB observer We use a RDPClientQt as RDP observer @param controller: build factory and needed by observer @param addr: destination address @return: RDPClientQt """ # create client observer if self._recodedPath is None: self._client = RDPClientQt(controller, self._width, self._height) else: self._client = RDPClientQtRecorder( controller, self._width, self._height, rss.createRecorder(self._recodedPath)) # create qt widget self._w = self._client.getWidget() self._w.setWindowTitle('My Rdp Client') if self._fullscreen: self._w.showFullScreen() else: self._w.show() controller.setUsername(self._username) controller.setPassword(self._passwod) controller.setDomain(self._domain) controller.setKeyboardLayout(self._keyboardLayout) controller.setHostname(socket.gethostname()) if self._optimized: controller.setPerformanceSession() controller.setSecurityLevel(self._security) return self._client
def buildObserver(self, controller, addr): """ @param controller: {rdp.RDPServerController} @param addr: destination address @see: rdp.ServerFactory.buildObserver """ self._uniqueId += 1 return ProxyServer(controller, self._target, self._clientSecurity, rss.createRecorder(os.path.join(self._ouputDir, "%s_%s_%s.rss"%(time.strftime('%Y%m%d%H%M%S'), addr.host, self._uniqueId))))
def buildObserver(self, controller, addr): """ @summary: Build RFB observer We use a RDPClientQt as RDP observer @param controller: build factory and needed by observer @param addr: destination address @return: RDPClientQt """ #create client observer if self._recodedPath is None: self._client = RDPClientQt(controller, self._width, self._height) else: self._client = RDPClientQtRecorder(controller, self._width, self._height, rss.createRecorder(self._recodedPath)) #create qt widget self._w = self._client.getWidget() self._w.setWindowTitle('rdpy-rdpclient') if self._fullscreen: self._w.showFullScreen() else: self._w.show() controller.setUsername(self._username) controller.setPassword(self._passwod) controller.setDomain(self._domain) controller.setKeyboardLayout(self._keyboardLayout) controller.setHostname(socket.gethostname()) if self._optimized: controller.setPerformanceSession() controller.setSecurityLevel(self._security) return self._client