Re: Implementing a TCP port listener in Cocoa
Re: Implementing a TCP port listener in Cocoa
- Subject: Re: Implementing a TCP port listener in Cocoa
- From: Rick Hoge <email@hidden>
- Date: Wed, 28 Jun 2006 21:00:48 -0400
On Jun 28, 2006, at 6:39 PM, Douglas Davidson wrote:
On Jun 28, 2006, at 3:30 PM, Andrew Bowman wrote:
Thanks for the info, I wasn't aware of that. I'm still not clear
on why it should not be used this way, however. What's going on
in the background in NSSocketPort that makes it a bad choice for
this usage?
NSSocketPort is an NSPort subclass based on BSD sockets. It's
intended for NSPort-based transport such as DO. It expects to do
the listening and other management for its socket(s) itself. It
might perhaps work if you create an NSSocketPort, extract the
socket and use it for some other purpose, and discard the
NSSocketPort, but I wouldn't guarantee it.
Thanks for the helpful requests and discussion - I'm glad I'm not the
only one who finds the use of the word socket confusing in Cocoa :)
I also found a helpful discussion here
http://mymac.ws/mac-sockets-in-cocoa-14849.html
which included links to some code samples which accomplish what I need.
In particular the CocoaSOAP example is useful:
http://developer.apple.com/samplecode/CocoaSOAP/CocoaSOAP.html
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden