realbasic-nug
[Top] [All Lists]

Servers, Ports and scratching me head

To: REALbasic-NUG <realbasic-nug@lists.realsoftware.com>
Subject: Servers, Ports and scratching me head
From: Fabian Rueger <fabian@ruegers.net>
Date: Thu, 26 Feb 2009 14:20:31 -0500
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
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Hi everyone,

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.

The server's sockets handed out are the same subclass of EasyTCPsockets I use to connect with the clients, they just know via a boolean property
whether they operate from a server or client side.

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), or do I need to change the ports on the non-server sockets once the connection is established? (To port x+1, x+2, ...x+n?)

Any comments would surely be scrutinized for content and appropriately appreciated.

Regards,

Fabian
using RB 2008 Pro release 4.2 on OS X 10.4.11
on G4 1.25 GHz, 1GB RAM



_______________________________________________
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>