At 11:55 AM -0400 4/17/06, [EMAIL PROTECTED] wrote:
I was then observing the similarities between my system and a ServerSocket, and I was thinking that I could simplify my networking system and make it faster. A ServerSocket also has an array of TCP sockets that hold connections
Well, yes, though this array is internal and you don't get to see it.
and the DataAvailable event is consolidated, just like how the DataAvailable event in each socket in my current system calls the same global method in a module.
Hmm, no, I don't think so. There is no consolidated DataAvailable event; each socket fires its own DataAvailable event.
The only thing I don't know is can a ServerSocket be used to connect to another computer, or can it only listen for connections?
No, that wouldn't make any sense. The whole point of a ServerSocket, and the only thing it does for you, is that it listens on a port, and when an incoming connection comes in, it passes it off to one of the normal sockets in the pool of waiting sockets that it keeps around. It then resumes listening on the original port, all of which happens very quickly, so that the next caller doesn't get a busy signal. That's all there is to it.
Best, - Joe -- Joseph J. Strout [EMAIL PROTECTED] _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
