Re: VNC Server perl script and C++ Code

2008-01-28 Thread PARESH MASANI
>>The RFB ports start from 5900, the HTTP java viewer ports from 5800, and the
>>X11 ports from 6000.  It's therefore necessary to "skip" by 300 ports such
>>that the next 100 VNC servers use ports 6100+ for HTTP, 6200+ for RFB, 6300+
>>r X11 and so-on.

James,

Could you tell me if I want to modify the code
such that ports(RFB,HTTP amd VNC server) should not conflict and should
support 200 sessions instead of 100 sessions limit.The thing is if i modify
just vncserver script then it will able to generate the ports i wants but what
about the JAVA viewer port? To make chanege only in vncserver script will
generate VNC server port and allow to create sessions on servers. but to
display those sessions we need to have JAVA viewer port also so could you tell
me how to do this? I figured out that i could create the session but not able
to display on my screen using vncviwer.

 And i think the ports should not be
conflict with other process that will be taken by checking whether port is
free or not. Am i correct?




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

Hi Paresh,

> >>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?

I think the code you're referring to is used when
Xvnc is launched from
inetd & therefore can't rely on vncserver having
allocated a display for it.

> >> 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 RFB ports start from 5900, the HTTP java
viewer ports from 5800, and the
X11 ports from 6000.  It's therefore necessary
to "skip" by 300 ports such
that the next 100 VNC servers use ports 6100+ for
HTTP, 6200+ for RFB, 6300+
for X11 and so-on.

> >> 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.

Sorry, I'm afraid I
don't know what you mean by that!

Regards,

--
Wez @ RealVNC Ltd


  Meet
people who discuss and share your passions. Go to
http://in.promos.yahoo.com/groups
___
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list


RE: VNC Server perl script and C++ Code

2008-01-28 Thread James Weatherall
Hi Paresh,

On Unix platforms:
"vncviewer" is the stand-alone VNC Viewer.
"vncserver" is the command users run to start a VNC Server.
"Xvnc" is the actual VNC Server.

--
Wez @ RealVNC Ltd
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of PARESH MASANI
> Sent: 25 January 2008 05:06
> To: James Weatherall
> Cc: vnc-list@realvnc.com
> Subject: Re: VNC Server perl script and C++ Code
> 
> H...Great..Got it..Thanks James.
> 
> 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.
> 
> >>Sorry, I'm afraid I don't know
> what you mean by that!
> 
> I mean to say, Only on Xvnc is there or more? 
> I knows
> about vnc server and vnc viewer are the main part of real vnc 
> then what is the purpose of Xvnc?
> 
> Thanks,
> Paresh
> 
> 
>  
> - Original Message 
> From: James
> Weatherall <[EMAIL PROTECTED]>
> To: PARESH MASANI <[EMAIL PROTECTED]>
> Cc:
> vnc-list@realvnc.com
> Sent: Thursday, 24 January, 2008 11:39:59 PM
> Subject: RE:
> VNC Server perl script and C++ Code
> 
> Hi Paresh,
> 
> > >>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?
> 
> I think the code you're referring to is used when Xvnc is 
> launched from inetd & therefore can't rely on vncserver 
> having allocated a display for it.
> 
> > >> 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 RFB ports start from 5900, the HTTP java viewer ports 
> from 5800, and the
> X11 ports from 6000.  It's therefore necessary to "skip" by 
> 300 ports such that the next 100 VNC servers use ports 6100+ 
> for HTTP, 6200+ for RFB, 6300+ for X11 and so-on.
> 
> > >> 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.
> 
> Sorry, I'm afraid I
> don't know what you mean by that!
> 
> Regards,
> 
> --
> Wez @ RealVNC Ltd
> 
> 
>   Why
> delete messages? Unlimited storage is just a click away. 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
> 
___
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list


Re: VNC Server perl script and C++ Code

2008-01-25 Thread steve menard

Following up in-line

steve menard wrote:

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?
  



100 Viewports will cover 200 java and direct ports
only a single display can be on a listening port with the free version
[although you can have many computers viewing the same screen -display 
port- ]

YesJava Port is 100 less than VNC Port both are required free:

 when you use port :0  it is BOTH 5800 & 5900
 when you use port :10  it is BOTH 5810 & 5910
 when you use port :90  it is BOTH 5890 & 5990
X11 [standard 'desktop at the keyboard' uses 6000] --   so you can't 
use 6000 or :100


When you use the next batch of available port numbers
 when you use port :300  it is BOTH 6100 & 6200   [so no conflit with 
6000 range ]

 when you use port :310  it is BOTH 6110 & 6210
 when you use port :399  it is BOTH 6199 & 6299   [ next port conflict 
with 6200 ]


The next range available is java viewer starting at :6300 so viewer is 
at :6400

When you use the next batch of available port numbers
when you use port :300  it is BOTH 6300 & 6400   [so no conflict with 
6100-6199: 6200-6299]

when you use port :310  it is BOTH 6310 & 6410
when you use port :399  it is BOTH 6399 & 6499   [ next port range 
java- 6500-6599 direct 6600-6699 ]



THIS IS NOT CODED FOR in the wrapper you see ;  it goes only to 99




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
  

___
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


Re: VNC Server perl script and C++ Code

2008-01-24 Thread PARESH MASANI
H...Great..Got it..Thanks James.

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.

>>Sorry, I'm afraid I don't know
what you mean by that!

I mean to say, Only on Xvnc is there or more? 
I knows
about vnc server and vnc viewer are the main part of real vnc then what is the
purpose of Xvnc?

Thanks,
Paresh


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

Hi Paresh,

> >>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?

I think the code you're referring to is used when
Xvnc is launched from
inetd & therefore can't rely on vncserver having
allocated a display for it.

> >> 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 RFB ports start from 5900, the HTTP java
viewer ports from 5800, and the
X11 ports from 6000.  It's therefore necessary
to "skip" by 300 ports such
that the next 100 VNC servers use ports 6100+ for
HTTP, 6200+ for RFB, 6300+
for X11 and so-on.

> >> 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.

Sorry, I'm afraid I
don't know what you mean by that!

Regards,

--
Wez @ RealVNC Ltd


  Why
delete messages? Unlimited storage is just a click away. 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


RE: VNC Server perl script and C++ Code

2008-01-24 Thread James Weatherall
Hi Paresh,

> >>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?

I think the code you're referring to is used when Xvnc is launched from
inetd & therefore can't rely on vncserver having allocated a display for it.

> >> 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 RFB ports start from 5900, the HTTP java viewer ports from 5800, and the
X11 ports from 6000.  It's therefore necessary to "skip" by 300 ports such
that the next 100 VNC servers use ports 6100+ for HTTP, 6200+ for RFB, 6300+
for X11 and so-on.

> >> 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.

Sorry, I'm afraid I don't know what you mean by that!

Regards,

--
Wez @ RealVNC Ltd
___
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list


Re: VNC Server perl script and C++ Code

2008-01-24 Thread steve menard

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?
  


YesJava Port is 100 less than VNC Port both are required free:

 when you use port :0  it is BOTH 5800 & 5900
 when you use port :10  it is BOTH 5810 & 5910
 when you use port :90  it is BOTH 5890 & 5990
X11 [standard 'desktop at the keyboard' uses 6000] --   so you can't use 
6000 or :100


When you use the next batch of available port numbers
 when you use port :300  it is BOTH 6100 & 6200   [so no conflit with 6000]
 when you use port :310  it is BOTH 6110 & 6210
 when you use port :399  it is BOTH 6199 & 6299   [ next port conflict 
with 6200 ]







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
  

___
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list


Re: VNC Server perl script and C++ Code

2008-01-24 Thread PARESH MASANI
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


RE: VNC Server perl script and C++ Code

2008-01-24 Thread James Weatherall
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