Re: [Vnc2swf-users] error: unpack str size does not match format
Status: Alpha
Brought to you by:
euske
From: <lfk...@ya...> - 2005-11-11 14:29:21
|
Well, I guess I found the bug. I'll let Yusuke fix it! :) The RFB protocol (http://www.realvnc.com/docs/rfbproto.pdf) states that first the server sends the maximum protocol version it understands and then the client sends the version it wants to use. Check function "init" in class RFBProxy. It's inverted! And it assumes that the handshaked version is the one returned from the server. It's not. It's the one sent by the client. The RealVnc sends version 3.6. So the client must send a 3.3. The problem is that the client is trying to decode the messages as 3.6, which is not 3.3 so it ends up in the else clause along with the 3.7 and 3.8. Just to make it work without much thought: def init(self): # recv: server protocol version self.server_version = self.recv(12) # send: client protocol version # just force version 3.3 for now # but should try the highest between 3.3, 3.7 and 3.8 self.send('RFB 003.003\x0a') self.server_version = 'RFB 003.003\x0a' if self.debug: print >>stderr, 'server_version: %r' % self.server_version return self That's it! Luis Fernando --- "Karnowski, David" <dka...@et...> escreveu: > As a work-around the free edition of RealVNC works for me on Windows, > including the authentication: http://www.realvnc.com/download.html > > -----Original Message----- > From: vnc...@li... > [mailto:vnc...@li...]On Behalf Of Fabiano > Caixeta Duarte > Sent: Friday, November 11, 2005 8:04 AM > To: vnc...@li... > Subject: [Vnc2swf-users] error: unpack str size does not match format > > > Hi there! > > I just installed pyvnc2swf 0.7.1 and pygame 1.7.1. I had already installed > tightVNC 1.2.9. > > When I try to conect to a UltraVNC 1.0 (Windows), vnc2swf.py never prompts > for password and after a while, shows me > "error: unpack str size does not match format" > > The command line I'm using is: > > $ ./vnc2swf.py -o /tmp/test.swf 192.168.0.5 > > I hope you have a solution for this :) > > Thanks in advance! > > -- > Fabiano Caixeta Duarte > Seção Técnica de Informática > FEA-RP/USP > > ************************************ > " DESISTIR é uma solução permanente > para um problema temporário. " > James MacArthur > ************************************ > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Vnc2swf-users mailing list > Vnc...@li... > https://lists.sourceforge.net/lists/listinfo/vnc2swf-users > _______________________________________________________ Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ |