• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with NSSocketPort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with NSSocketPort


  • Subject: Re: Problems with NSSocketPort
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 11 Feb 2003 09:25:59 -0800

On Monday, February 10, 2003, at 09:00 PM, Ben Lachman wrote:

NSSocketPort *port = [[NSSocketPort alloc] initWithTCPPort:portNum];
NSConnection *conn = [[NSConnection alloc] initWithReceivePort:port sendPort:nil];
...

The problem is that port is never non-NULL, which makes conn be NULL as well.

This wouldn't be a low port number, would it? Port numbers < 1024 can only be bound by root. Try a larger number.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Problems with NSSocketPort
      • From: Ben Lachman <email@hidden>
References: 
 >Re: Problems with NSSocketPort (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: RTFD File Encoding
  • Next by Date: Re: Problems with NSSocketPort
  • Previous by thread: Re: Problems with NSSocketPort
  • Next by thread: Re: Problems with NSSocketPort
  • Index(es):
    • Date
    • Thread