|
From: | Nicolas Pinault |
Subject: | Re: [lwip-users] porting vnc server FreeRTOS&lwip |
Date: | Wed, 15 Sep 2010 08:54:56 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.9) Gecko/20100825 Lightning/1.0b2 Thunderbird/3.1.3 |
Hi Thien,hi Nicolas,Yes, it works. Or, I shall say it seems to work. Lwip is not thread safe. Accessing the same socket in two different threads is not safe. Your system will bug/hang/crash sooner or later. This means you have to modify the original code. The server always sends screen data when it wants/needs to. The server may send only part of screen data that have changed. The client can request a screen update when needed. At startup for example. Vnc protocol is simple. You can find the reference document here : http://www.realvnc.com/docs/rfbproto.pdf As a client, I recommend using ThighVnc 1.3.10 as it is simple (http://www.tightvnc.com/download.php). Configure viewer to suit server settings. At the opposite, UltraVnc tries to find server settings automatically but this does not work correctly with the code I use. Regards, Nicolas
|
[Prev in Thread] | Current Thread | [Next in Thread] |