Re: Why is Leopard annoying my users?
Re: Why is Leopard annoying my users?
- Subject: Re: Why is Leopard annoying my users?
- From: Alastair Houghton <email@hidden>
- Date: Tue, 20 Nov 2007 16:12:06 +0000
On 20 Nov 2007, at 15:52, James Bucanek wrote:
Alastair Houghton <mailto:email@hidden> wrote
(Tuesday, November 20, 2007 6:48 AM -0000):
Well regardless of whether or not you think your application isn't
creating any TCP sockets, it clearly is; protocol 6 is TCP and the
reason you're being pestered is that your programs are binding ports
for listening on any address.
Exactly. Since I spend days trying to figure out how to create an
interprocess Distributed Objects communications pipe that did *not*
use TCP I'm feeling cheated.
- (NSConnection*)clientConnection
{
NSConnection* connection = nil;
NSPort* port = nil;
if ([self socketExists])
port = [self connectPort];
if (port!=nil)
connection = [NSConnection connectionWithReceivePort:nil
sendPort:port];
return (connection);
}
Could this (above) be the problem? The docs for NSConnection say:
"If receivePort is nil, the NSConnection object allocates and uses a
new port of the same class as sendPort."
It's just a guess, but I wonder if the issue might be that it's
allocating a TCP socket rather than a UNIX domain socket... after all,
it has no way to name a UNIX domain socket if it allocates a new
NSSocketPort.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden