Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

How do diffrent reconnection

Developers may discuss here
Post Reply
setur
Posts: 2
Joined: 2012-02-24 07:06

How do diffrent reconnection

Post by setur »

Hi.
I need to modify source code for that thing: vnc client show one server, after 30 sec client close connection and open connection to another server from list.
I'm so bad in uvnc source and Win C programming and so i need help.

I'm see 2 ways.

Modify App object and WinMain functtion. First App object shows one server. After 30 sec it sends a special message and kill itself. WinMain msg cycle recives a message and create new app object.

Or modifing clientconnection object. But i don't understand how it works. I tried to use this:
_this->KillThread();
_this->DoConnection();
but it doesn't work.

Please help me with an advice and describing of the clientconnection Run DoConnection KIllTherad and other functions.
setur
Posts: 2
Joined: 2012-02-24 07:06

Re: How do diffrent reconnection

Post by setur »

I have a progress with that.
But I have a new problem.

///Force break after timeout
DWORD threadID;
ThreadSocketTimeout = CreateThread(NULL,0,SocketTimeout,(LPVOID)&m_sock,0,&threadID);
res = connect(m_sock, (LPSOCKADDR) &thataddr, sizeof(thataddr));

This socket timeout doesn't work and i don't know why.
Post Reply