New topic in Networking: 

Questions regarding the ServerSocket

Carello - Mon May 05, 2008 9:08 am

<http://forums.realsoftware.com/viewtopic.php?t=22202>
                                                                                
                                                                                
Hi,

I just got involved using the ServerSocket in RB, and it immediatly raised a 
few questions I can't seem to figure out on my own.

For starters, no matter what values I assign the MaximumSocketsConnected and 
MinimumSocketsAvailable a minimum of 11 socket objects are always created when 
the ServerSocket is initiated.

Using the AddSocket event, I store created sockets in an array for easy access, 
no matter what values are assigned to the the above mentioned properties (set 
before the Listen method is called), the array always contains a minimum of 11 
objects once the initiation is done.

As I understand it, the above mentioned properties are there to control the 
amount of sockets the ServerSocket can use, so setting the 
MaximumSocketsConnected to 4 should only create 4 socket objects, not 11 or 
more, right?

Have I just seriously misunderstood the way ServerSocket works or is there 
something wrong with my version of RB?
I'm using RB 2007r5.                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                        




-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to