On Feb 26, 2009, at 9:44 PM, Joe Strout wrote:
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.
Actually, it appears that calling Listen does not prevent a
connection. I wrote a test; what happens when the port is set and
Listen is called for the listener sockets is that they return error
105 at creation, but a client can still connect to them. This
suggests that you (Fabian) are not checking for socket errors as
carefully as you might. Experience has taught me that you need to log
socket activity thoroughly to have any hope at all of debugging
problems. At a minimum, you should log connections on both sides and
all errors returned in the Error event handler.
On my web site there is a trivial client-server example project
<Download [8.8KB]> that may or may not help you.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
From Thu 26 Feb 2009 21:23:50 -0600 (CST)
Delivered-To: listarchive@realsoftware.com
Received: by 10.100.124.16 with SMTP id w16cs117386anc;
Thu, 26 Feb 2009 19:25:10 -0800 (PST)
Received: by 10.150.199.16 with SMTP id w16mr3093685ybf.217.1235705109781;
Thu, 26 Feb 2009 19:25:09 -0800 (PST)
Return-Path: <realbasic-nug-bounces@lists.realsoftware.com>
Received: from advanced107.inmotionhosting.com (advanced107.inmotionhosting.com
[74.124.194.228])
by mx.google.com with ESMTP id 21si27364736gxk.78.2009.02.26.19.25.08;
Thu, 26 Feb 2009 19:25:09 -0800 (PST)
Received-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) client-ip=74.124.194.228;
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
Received: from localhost ([127.0.0.1] helo=advanced107.inmotionhosting.com)
by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
(envelope-from <realbasic-nug-bounces@lists.realsoftware.com>)
id 1LctKI-00024U-GX; Thu, 26 Feb 2009 19:23:50 -0800
Received: from boundless.dns-defender.com ([69.65.40.13])
by advanced107.inmotionhosting.com with esmtps (TLSv1:AES256-SHA:256)
(Exim 4.69) (envelope-from <fargo@rpgportland.com>)
id 1LctKG-00024B-L3 for realbasic-nug@lists.realsoftware.com;
Thu, 26 Feb 2009 19:23:48 -0800
Received: from localhost ([127.0.0.1] helo=rpgportland.com)
by boundless.dns-defender.com with esmtpa (Exim 4.69)
(envelope-from <fargo@rpgportland.com>) id 1LctKI-00069i-GX
for realbasic-nug@lists.realsoftware.com;
Thu, 26 Feb 2009 21:23:50 -0600
Received: from 71.237.172.112 ([71.237.172.112])
(SquirrelMail authenticated user fargo@rpgportland.com)
by rpgportland.com with HTTP; Thu, 26 Feb 2009 21:23:50 -0600 (CST)
Message-ID: <61688.71.237.172.112.1235705030.squirrel@rpgportland.com>
In-Reply-To: <2CCC2C6E-270C-45D6-B643-0EE8D3C88036@tolisgroup.com>
References: <61049.71.237.172.112.1235702528.squirrel@rpgportland.com>
<2CCC2C6E-270C-45D6-B643-0EE8D3C88036@tolisgroup.com>
Date: Thu, 26 Feb 2009 21:23:50 -0600 (CST)
Subject: Re: Linux note on Ubuntu 9.04 and fonts
From: fargo@rpgportland.com
To: "REALbasic NUG" <realbasic-nug@lists.realsoftware.com>
User-Agent: SquirrelMail/1.4.13
MIME-Version: 1.0
X-Priority: 3 (Normal)
Importance: Normal
X-AntiAbuse: This header was added to track abuse,
please include it with any abuse report
X-AntiAbuse: Primary Hostname - boundless.dns-defender.com
X-AntiAbuse: Original Domain - lists.realsoftware.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - rpgportland.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-BeenThere: realbasic-nug@lists.realsoftware.com
X-Mailman-Version: 2.1.10
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces@lists.realsoftware.com
Errors-To: realbasic-nug-bounces@lists.realsoftware.com
X-AntiAbuse: This header was added to track abuse, please include it with any
abuse report
X-AntiAbuse: Primary Hostname - advanced107.inmotionhosting.com
X-AntiAbuse: Original Domain - realsoftware.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - lists.realsoftware.com
On Feb 26, 2009, at 7:42 PM, fargo@rpgportland.com wrote:
Looking at an article about the release of the 9.04 Alpha, I saw
this and thought I'd pass it on-
"Font dot-per-inch settings are now optimized based on your
monitor's capabilities, rather than defaulting to 96 dpi. You can
further customize your dpi settings via System; Preferences;
Appearance; Fonts ; Details.."
I have no idea what the ramifications of that will be, but hey,
sharing is caring.
I'll tell you what this means - it means that no matter how hard we
try to get our apps to look good on Linux, the user will have the
power to totally ruin our work by changing the DPI setting. We've
had this power in OpenSuSE and Fedora under GNOME for the last 3
releases. My best recommendation is that you warn the user to use
the default setting of 96 DPI for best results.
If they go lower, your app will still look right, but if they go
higher - 112 for example, the fonts will cause everything on your app
to be too big for its container - pushbuttons, comboboxes,
editfields, popupmenus, anything that "contains" your font without
resizing based on the font's dimensions.
Tim
Well, not just that. This is to be an automatic adjustment. Presumably
there are GTK+ mechanisms for dealing with this, and may be related to the
issue someone mentioned on here a while back with the current libgtk+
release. I'm just spitballing ideas though, actually checking it out would
take time and energy I just can't summon right now.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|