Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

SC start connection without prompting listener

Single Click discussions / bugs
Post Reply
buch85
8
8
Posts: 10
Joined: 2006-03-07 13:42

SC start connection without prompting listener

Post by buch85 »

Hi,
I've recompiled the single click from the source code retrieved on the CVS, I created the client with the offline creator using the "winvnc.exe" that i've just built, but now i have a strange behaviour:
when i start a connection from the single click(double-clicking on an item in the list), the listener directly connect without prompting anything about "accepting or refusing connection from the server", as it usually do with the default "winvnc.exe" provided with the offline creator.

Can anybody explain me what is happening? :shock:

I haven't modified the source code, i just recompiled it.
the helpdesk.txt is the following:

Code: Select all

[TITLE]
My company
 
[HOST]
My company technical support
-connect my.address.com:5500 -noregistry
 
[TEXTTOP]
Dubble Click to make a connection
 
[TEXTRMIDDLE]
Version 1.0 RC18
 
[TEXTRTOP]
UltraVNC SC
 
[TEXTMIDDLE]
 
[TEXTBOTTOM]
 
[TEXTRBOTTOM]
 
[TEXTBUTTON]
About us..
 
[WEBPAGE]
www.google.com
 
[TEXTCLOSEBUTTON]
Close..
 
[BALLOON1TITLE]
Establishing connection ...
 
[BALLOON1A]
5 min try period
 
[BALLOON1B]
If it fails, the software will remove himself
 
[BALLOON1C]
from your system. 
 
[BALLOON2TITLE]
Connection active.
 
[BALLOON2A]
Warning, your desktop is remote visable
 
[BALLOON2B]
You can break the connection any time
 
[BALLOON2C]
by using the close button
 
[WEBPAGE]
www.google.com
The listener is the version 1.0.1

Please, help me :surprise:
buch85
8
8
Posts: 10
Joined: 2006-03-07 13:42

Post by buch85 »

Can anybody help me?

I really don't understand why the viewer in listen mode accept the connection from the Signle Click server without prompting anything.

I saw in an anthor topic that i'm not the only one that have this problem... please answer me, I feel so alone! :cry:
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Post by redge »

SingleClick need Ultra vncviewer 1.0.1 or higher
another build of vnc viewer like realvnc viewer or tight vncviewer dosen't prompt anything without modification made by pgmoney
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
buch85
8
8
Posts: 10
Joined: 2006-03-07 13:42

Post by buch85 »

Thanks for answer :) ... but the vncviewer is the latest version... i've compiled it from the same cvs version of the single click (v1.0.1)
Nothing to do.
With the debug tool of Visual c++ i watched step by step what happens in the vncviewer (in listen mode) when the connection from sc arrives...
but i really don't understand what is the difference between the sc i've compiled myself and the sc that i built on-line.

As I said before: with the online created sc the listener prompt to accept/refuse the connection, but with the sc i've compiled (i didn't change anything in the source code) it doesn't prompt anything

PS: i'm a noob c++ programmer but i think that the difference is in what the "msg" variable contains.
The problem occurs in this portion of code.
file: vncviewer.cpp -> WinMain function

Code: Select all

[...]
try{
  while ( GetMessage(&msg, NULL, 0,0) )
  {
      if (!TheAccelKeys.TranslateAccelKeys(&msg))
      {
          TranslateMessage(&msg);
          DispatchMessage(&msg);
      }
  }
}
[...]
I really have no idea what GetMessage,TheAccelKeys.TranslateAccelKeys,TranslateMessage and DispatchMessage do.
Can anyone explain it for me?

Thanks
Last edited by buch85 on 2006-03-20 18:43, edited 1 time in total.
buch85
8
8
Posts: 10
Joined: 2006-03-07 13:42

Post by buch85 »

Hi again,
i've found exactly what is the problem but now i need help to solve it... :roll:

In the project vncviewer -> file ClientConnection.cpp-> function ClientConnection::NegotiateProtocolVersion(), i've found (debugging it) that the rfbProtocolVersionMsg that i get from the SingleClick i've created online is "RFB 003.016" but the rfbProtocolVersionMsg that i get from the SC i've compiled myself is "RFB 003.006".

this difference doesn't make the prompt window to appear.

I think that in the source code of the SC I have, something is missing (maybe the source code i'm using is different from the one that have been used to create the online SC builder).

Does anybody know which version are actually used? Where can i find it?
Thanks

PS: I will put a bronze bust in my office with the sembiance of my saviour :)

Marco
morpheus3g
Posts: 5
Joined: 2006-03-31 14:58

Post by morpheus3g »

i have the same problem as yours... i need to recompile the source code because i want to modify the interface and to insert a timer.

Please, if you find a solution tell me how you solved this problem

If i find the solution before you do i'll tell it here :P

Thanks
Post Reply