maximum number of host sections in helpdesk.txt

Single Click discussions / bugs

maximum number of host sections in helpdesk.txt

Postby Stijn78 » 2009-09-17 18:56

Hi,

We have been using UltraVNC SC for a couple of years now in our university.
All worked fine until now.

Apparently there is a limit on the number of [HOST] sections you can add to helpdesk.txt. I currently have 24 sections. If I add another host-section I get strange text in the list of our helpdesk.exe file. Text like "o listening VNC viewer" appears after the name of the person I added.
Is there a way I can get passed the host sections limit without breaking up my exe file into seperate ones?

Any help would be greatly appreciated.

Stijn
Stijn78
 
Posts: 1
Joined: 2009-09-17 18:23

Re: maximum number of host sections in helpdesk.txt

Postby Rudi De Vos » 2009-09-18 10:22

Indeed, list is limited.
Not possible without code change ( limit is hardcoded)
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5563
Joined: 2004-04-23 10:21

Re: maximum number of host sections in helpdesk.txt

Postby pgmoney » 2009-09-19 06:59

Rudi De Vos wrote:Indeed, list is limited.
Not possible without code change ( limit is hardcoded)


Not sure if this will apply to the updated SC (I don't have current sources) but this should raise the limit to 50 and adds a check to prevent the array overflow if there are too many host entries.

winvnc.cpp:
Code: Select all
//PGM    g_var[25][150];
//PGM    g_var_20[25][50];
char   g_var[50][150]; //PGM
char   g_var_20[50][50]; //PGM


Code: Select all
   while( fgets( myline, sizeof(myline), fid ))
   {
      int j=0;
      if (strncmp(myline, "[END]", strlen("[END]")) == 0) {
      break;
      }
      if (strncmp(myline, "[BEGIN HOSTLIST]", strlen("[BEGIN HOSTLIST]")) == 0) {
         continue;
      }

//PGM       if (strncmp(myline, "[HOST]", strlen("[HOST]")) == 0) {
      if (i < 50 && strncmp(myline, "[HOST]", strlen("[HOST]")) == 0) { //PGM


...Phil
User avatar
pgmoney
100
100
 
Posts: 285
Joined: 2004-06-26 22:29

Re: maximum number of host sections in helpdesk.txt

Postby Rudi De Vos » 2009-09-19 12:36

When i made sc i expected no small support company's to have more then 24 engineers... :o

I will update it to 50 next build.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5563
Joined: 2004-04-23 10:21

Re: maximum number of host sections in helpdesk.txt

Postby m.gerardi » 2009-09-21 20:05

I have the same problem, but we need about 100 host sections. We need all this host sections because each operators sometimes connect to more than one customer at time.
Is this possible? If possible, how long you take to build it?

Thank you very much
Last edited by m.gerardi on 2009-09-21 20:08, edited 1 time in total.
m.gerardi
 
Posts: 1
Joined: 2009-09-21 19:48

Re: maximum number of host sections in helpdesk.txt

Postby JDaus » 2009-09-30 03:45

m.gerardi wrote:I have the same problem, but we need about 100 host sections. We need all this host sections because each operators sometimes connect to more than one customer at time.
Each operator can recieve multiple connections on the one "HOST" setting ... otherwise if each operator uses multiple connections, then they will need multiple copies of the viewer running to recieve each connection on the different ports ... kind of defeats the purpose of it all i thought.

why not just run the tabbed viewer in listen mode, then you have tabs showing with all your connections on the one window ...
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
VNC2Me - OpenSource Free Remote Screen\Desktop Sharing Solutions
SecureTech
JDaus
Friend of UVNC
Friend of UVNC
 
Posts: 516
Joined: 2007-03-17 11:00
Location: Sydney, Australia

Re: maximum number of host sections in helpdesk.txt

Postby gui_ap » 2011-05-16 16:24

This still is not working?
I need 50 hosts.
gui_ap
 
Posts: 1
Joined: 2011-05-16 14:46

Re: maximum number of host sections in helpdesk.txt

Postby celangoni » 2011-09-28 16:19

Hi all!
Is there any way to create a host list with more than 50 entries?
We are preparing a community support project and have about 100 people to help with support.

I have read the forum, but all replies, even for offline creators, have limitations in host entries.
can I change and compile the source code of a generator to do this? How to could I do it?

I'm not a very experiencied programmer (only in php language).

Thanks a lot!
celangoni
 
Posts: 1
Joined: 2011-09-28 15:43

Re: maximum number of host sections in helpdesk.txt

Postby B » 2011-09-28 16:29

You could probably follow pgmoney's example above if you want to modify it yourself, replacing the "50" with "100".

But why not use a repeater instead? You can have thousands of hardcoded "session IDs" with one repeater. If neither SC nor SCPrompt nor ChunkVNC will support that many listings in their interfaces, just create multiple packages, or one per session ID.

Even easier, just provide a list of session IDs (much like a telephone directory) on a web page or splash screen, and have the user type the ID. This is more or less how ChunkVNC works now. And Join.me for that matter. Users enter the numeric code the connection they wish to use.
B
Super-Mod
Super-Mod
 
Posts: 2347
Joined: 2009-09-09 14:05


Return to SC

Who is online

Users browsing this forum: No registered users and 3 guests