• 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: Using NSSocketPort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSSocketPort


  • Subject: Re: Using NSSocketPort
  • From: Cryx <email@hidden>
  • Date: Sun, 21 Apr 2002 21:50:26 -0500

I've been trying to force myself to write a pure cocoa application, but I too didn't have much luck using NSSocketPort. Instead I wrote a thin object wrapper over familiar bsd sockets. That being said, I'd recommend registering with the default notication center for nil events & objects (essentially you can filter all notifications). Use NSLog to dump the notications and see if there's one that would be applicable.

If nothing else, create a thread to accept on the listening socket and post notifications back to the main thread via a DO connection.

On Sunday, April 21, 2002, at 09:12 PM, Michael P. Rogers wrote:

This isn't really what I'm wanting to do. I'm trying to make a server for
an existing network protocol, so therefore I can't use NSConnection. I just
trying to use NSSocketPort in order to accept connections within the run
loop.

Sorry, I got as far as "does anybody have any sample code", and was so thrilled that I could answer that I didn't read further. Hopefully somebody with a better understanding of DO than I (which, at the present time, would be the majority of the people on this list) will respond.

Michael
-- ---------------------------------
Dr. Michael Rogers
e-mail: email@hidden
Phone: 217-424-6327
For information about Computer Science at Millikin University, visit http://math.millikin.edu
For information about astronomy, check out http://twincityamateurastronomers.org
_______________________________________________
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.
_______________________________________________
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: Using NSSocketPort (From: "Michael P. Rogers" <email@hidden>)

  • Prev by Date: Re: Using NSSocketPort
  • Next by Date: Re: Compile times.
  • Previous by thread: Re: Using NSSocketPort
  • Next by thread: Re: Using NSSocketPort
  • Index(es):
    • Date
    • Thread