Thanks James, Your answer help me a lot. Few more clarifications as i am
completely new to real vnc and trying to learn it.

>>through from 1..1000
should work, 
But i saw that in C++ code in hostandport.h and some vncExt.cc
file, this same check is there to return a port number. Will it not make any
difference?

>> numbers with each block being
>>300 ports apart, e.g.
1..99,300..399,600..699 and so on
Why ports are 300 aparts. is any particular
reason there?

>> The "vncserver" program is actually a wrapper around "Xvnc",
I also read that there are so many Xvnc available in real vnc.What is that all
about in brief.

Thanks,
Paresh


----- Original Message ----
From: James
Weatherall <[EMAIL PROTECTED]>
To: PARESH MASANI <[EMAIL PROTECTED]>;
vnc-list@realvnc.com
Sent: Thursday, 24 January, 2008 5:50:25 PM
Subject: RE:
VNC Server perl script and C++ Code

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
>


      Get the freedom to
save as many mails as you wish. To know how, go to
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
_______________________________________________
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to