www.virtualacorn.co.uk/forum

For support and advice on VirtualAcorn products
It is currently Wed Aug 27, 2014 5:54 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Max number of open sockets
PostPosted: Sun Feb 06, 2011 12:44 am 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
I am developing an application using remote (internet) clients which each need a permanently open incoming TCP/IP connection.

Each client will coonect to one unique incoming port (the actual numbers being configurable).

I need up to 80 clients online at any one time. Is this OK? (or will I hit some limit in either VRPC or WinXP?)

_________________
John


Top
 Profile  
 
 Post subject: Re: Max number of open sockets
PostPosted: Mon Feb 07, 2011 12:26 pm 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
You will need to ensure that all the ports in the range you are using are:

Free for use (ie. not claimed by another other application)
Not blocked by any Firewalls

I presume that there is a good reason for using more than 1 port? I ask because it may prove more reliable to use one single port and to preface each data block with a unique identifier for the particular client machine (for example in the range 1 to 80). In my opinion using lots of user configurable ports is going to make debugging very difficult, plus gives users on each client machine a good way to mess everything up.


Top
 Profile  
 
 Post subject: Re: Max number of open sockets
PostPosted: Mon Feb 07, 2011 4:49 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
The ports will be free.

There are no 'users' - the clients are unmanned.

And the current design says that the clients will remain permanently connected - sending 'keep alive' requests every minute to keep the sockets open.

It all works with just two clients - which is all I have at the moment.

_________________
John


Top
 Profile  
 
 Post subject: Re: Max number of open sockets
PostPosted: Mon Feb 07, 2011 8:50 pm 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
Fair enough. If you know the ports will be available and also know that there won't be a Firewall blocking access I can't see any particular problems - provided there is enough bandwidth for all the clients to communicate correctly.


Top
 Profile  
 
 Post subject: Re: Max number of open sockets
PostPosted: Mon Feb 07, 2011 11:26 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
That's good.

I just wanted to check that the number of open sockets would not be a problem. :)

_________________
John


Top
 Profile  
 
 Post subject: Re: Max number of open sockets
PostPosted: Tue Feb 08, 2011 10:11 am 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
Whilst I have written some networking stuff (years ago) I've never needed to open lots of sockets at once. However I can't forsee any other obvious problems with opening and monitoring large numbers of sockets at once.


Top
 Profile  
 
 Post subject: Re: Max number of open sockets
PostPosted: Tue Feb 08, 2011 12:24 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
OK - Thanks.

I nearly have some test software ready, so I will give it a whirl.

_________________
John


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group