Re: DO Client can't connect, problem with code or Airport firewall?
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.