Fabian Rueger wrote:
Ookay, maybe I do not understand TCP/IP after all...
I am writing a server/client application; the problem is: Only one
client seems to be able to connect, but not more.
On my server, there is a serversocket set to Port X (larger than 1024).
First client connects, logs in, all is wonderful. It connects on that
port x, and keeps talking on it too.
Second client attempts to connect... and can't even get in. It's as if
he never attempted.
What is your MaximumSocketsConnected property set to on the
ServerSocket? Sounds to me like it might be 1.
Which begs the question:
Can a server have multiple sockets (his serversocket and a plethora of
EasyTCP socket subclasses) operating _all_ over the same port (x)
Yes. In reality, each of the incoming connections gets handed off to a
different port; you can see this by inspecting the Port property of your
EasyTCP's. But the listening always happens on the server port, and you
can receive any number of connections (up to the maximum you specify) on
that same port.
Cheers,
- Joe
--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|