Re: Network communication with NSFileHandle & NSSocketPort
Re: Network communication with NSFileHandle & NSSocketPort
- Subject: Re: Network communication with NSFileHandle & NSSocketPort
- From: Andrew Farmer <email@hidden>
- Date: Wed, 19 Mar 2008 16:45:12 -0700
On 19 Mar 08, at 14:05, Jeff LaMarche wrote:
On Mar 19, 2008, at 5:01 PM, Hamish Allan wrote:
There's an article here describing its more general use, at least
for
the server side:
http://macdevcenter.com/pub/a/mac/2006/11/14/how-to-write-a-cocoa-web-server.html
True, but he only uses NSSocketPort for the server, not for the
client. I was unable to get it to work as a client also. It may be
possible, but I wasn't able to get it working in the half hour or so
that I played with it.
A few postings on the CocoaDev wiki suggest that the socket may be
lazily initialized under current OS versions. Bottom line is that
NSSocketPort is pretty clearly not intended to be used that way.
_______________________________________________
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