realbasic-nug
[Top] [All Lists]

Re: Error 65 when connecting a socket

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Error 65 when connecting a socket
From: Charles Yeomans <charles@declareSub.com>
Date: Thu, 12 Jun 2008 11:42:17 -0400
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: <1A788BE5-4E65-4E75-B97E-2D70CD444951@mac.com>
References: <1A788BE5-4E65-4E75-B97E-2D70CD444951@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Jun 12, 2008, at 9:36 AM, Arnaud Nicolet wrote:

Hi,

I have a strange issue: I have two apps that should communicate to each other using a TCPSocket, but the Error event is called as soon as I use "Connect" on the client side; LastError is 65. I tried looking in the file "MacErrors.h" and on Google but found no result (so, I wonder if someone can help, in that case). It seems to be an hidden error code...
One of the app is a console app, if it's related...

Any hint?


That's a BSD socket error. Mac OS errors are negative. Yours is probably

#define EHOSTUNREACH    65              /* No route to host */


One place to find the list is in the C header file /System/Library/ Frameworks/Kernel.framework/Versions/A/Headers/sys/errno.h .

Charles Yeomans



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