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 19:44:37 -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: <B6AD6B3A-21D4-4E2C-BF03-B7A0C9C3F612@ruegers.net>
Organization: Inspiring Applications, Inc.
References: <mailman.8286.1235693497.5686.realbasic-nug@lists.realsoftware.com> <B6AD6B3A-21D4-4E2C-BF03-B7A0C9C3F612@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:

Below is the code from the AddSocket() event of the serversocket. Joe, if I understand you correctly there is no point in me setting the port of the added socket, even though they should be listening on that port?

That's right. ServerSocket will set their ports. Also, don't tell them to listen -- there's the culprit right there. Only the ServerSocket listens.

If you can add the "server" as a parameter to the constructor, then your whole AddSocket event should look like this:

  return New GameboardSocket(MyGame, true)

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>