• 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: Implementing a TCP port listener in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Implementing a TCP port listener in Cocoa (From: Rick Hoge <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Jakob Olesen <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Andrew Bowman <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Jakob Olesen <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Douglas Davidson <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Andrew Bowman <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Providing citation data for a text view
  • Next by Date: Re: Distributed Objects and Bonjour
  • Previous by thread: Re: Implementing a TCP port listener in Cocoa
  • Next by thread: Re: Implementing a TCP port listener in Cocoa
  • Index(es):
    • Date
    • Thread