Hi Paresh, VNC is implemented in C/C++ (aside from the VNC Viewer for Java, obviously). The "vncserver" program is actually a wrapper around "Xvnc", and is implemented in Perl in VNC Free Edition.
In order to adjust it to automatically allocate display numbers beyond 99, you need to make it scan blocks of 100 display numbers with each block being 300 ports apart, e.g. 1..99,300..399,600..699 and so on. Scanning straight through from 1..1000 should work, but will waste time scanning ranges that cannot be used because of port clashes. Regards, -- Wez @ RealVNC Ltd > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of PARESH MASANI > Sent: 24 January 2008 12:13 > To: vnc-list@realvnc.com > Subject: VNC Server perl script and C++ Code > > Hi, > > I found that real vnc for unix having vnc server perl script > plus c++ code. my questions are: > > 1. Why this two type code? what each meant for? > 2. I > found GetDisplayNumber function in perl script given below. > sub > GetDisplayNumber > { > foreach $n (1..99) { > if > (&CheckDisplayNumber($n)) { > return $n+0; # Bruce Mah's workaround for bug in > perl 5.005_02 > } > } > die "$prog ERROR: no free display > number on $host.\n"; > } > here my question is if i modified this loo 1-1000 instead of > 1-99.will it work for 1000 display numbers? > if anyone knows then > please let me know. it will be really helpful to me.. > > Thanks > Paresh > Chat on a cool, new interface. No download required. Go to > http://in.messenger.yahoo.com/webmessengerpromo.php > _______________________________________________ > VNC-List mailing list > VNC-List@realvnc.com > To remove yourself from the list visit: > http://www.realvnc.com/mailman/listinfo/vnc-list > _______________________________________________ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list