• 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: DO Client can't connect, problem with code or Airport firewall?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DO Client can't connect, problem with code or Airport firewall?


  • Subject: Re: DO Client can't connect, problem with code or Airport firewall?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 26 Apr 2002 19:00:30 -0700

On Friday, April 26, 2002, at 06:34 PM, Keith Gugliotto wrote:

I believe at least one pitfall with -[NSSocketPort initRemoteWithTCPPort:host:] is it appears to only work with actual hostnames. Try using -[NSSocketPort initRemoteWithProtocolFamily:PF_INET
socketType:SOCK_STREAM protocol:IPPROTO_TCP address:address] - with a properly configured struct sockaddr_in encoded in the NSData address.

Good advice--when in doubt, go to the fundamental API (in this case initRemoteWithProtocolFamily...) in favor of the convenience cover (initRemoteWithTCPPort:host:). I may have misspoken on this topic before; while we do have a fix for initRemoteWithTCPPort:host: to make it work with quoted addresses, I believe it did not make it into 10.1.

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.

References: 
 >Re: DO Client can't connect, problem with code or Airport firewall? (From: Keith Gugliotto <email@hidden>)

  • Prev by Date: Re: DO Client can't connect, problem with code or Airport firewall?
  • Next by Date: NSBezierPath difficulties...
  • Previous by thread: Re: DO Client can't connect, problem with code or Airport firewall?
  • Next by thread: [ANN] FoundationCollectionsPalette v1.0.0
  • Index(es):
    • Date
    • Thread