Re: Datagram Socket Reading?
Re: Datagram Socket Reading?
- Subject: Re: Datagram Socket Reading?
- From: RR <email@hidden>
- Date: Fri, 10 May 2002 19:09:19 -0400
Paul I have looked into this issue extensively and there really are no
feature-complete, Apple-supplied ObjC classes suited for socket
communication. And I sort of poked around with OmniNetworking which looks
like an awesome set of goodies, but far more than I need presently.
And in addition, I will swear on my dear grandfather's grave that I read
once somewhere on developer.apple.com that the official recommendation for
socket programming is to use the BSD layer functions. However I now
cannot find reference to this statement at all!
So creating a new, blocking thread appears to be the way to go. To that
end, you should go immediately and acquire a copy of W. Richard Stevens'
Unix Network Programming Volume 1. It is without a doubt the most
thorough book on Unix sockets programming available.
RR
On Friday, May 10, 2002, at 02:58 AM, Paul A. Seligman wrote:
I'm looking to write a wrapper for a UDP socket. What I'd like to do is
to set up a socket with a particular server, write to it once (and
process an expected response). That seems easy enough. My problem is how
to sit and wait for an asynchronous message
from my server after the initial communication. NSFileHandle seemed like
the obvious choice, but the documentation mentions that it is
incompatible with datagram sockets.
_______________________________________________
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.