Re: Using NSSocketPort
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.