realbasic-nug
[Top] [All Lists]

Re: Servers, Ports and scratching me head

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Servers, Ports and scratching me head
From: Joe Strout <joe@inspiringapps.com>
Date: Thu, 26 Feb 2009 15:16:32 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <DBD365A4-C4CE-4518-94A8-E79031CAAA91@ruegers.net>
Organization: Inspiring Applications, Inc.
References: <DBD365A4-C4CE-4518-94A8-E79031CAAA91@ruegers.net>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
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>


<Prev in Thread] Current Thread [Next in Thread>