Re: TCP/IP Connections
Re: TCP/IP Connections
- Subject: Re: TCP/IP Connections
- From: Greg Titus <email@hidden>
- Date: Sat, 22 Dec 2001 12:18:21 -0800
Hi Sander,
Just a quick follow up on part of your question:
On Saturday, December 22, 2001, at 07:00 AM, email@hidden wrote:
Before I summerize the options I found, I need to tell you that the
application I'm writing needs to communicate with other applications
written on different platforms and in different languages with a
communication protocol that has already been defined (this rules out
any DO approaches as far as I can see).
Right.
Secondly I would like to do the socket/communication handling within my
application in an asynchronous manner (especially for the arrival of
incoming data and detection of connectionloss).
...
* The OMNI Networking framework
This framework seems quite usefull (although I prefer to have a
solution that is based on libraries provided by Apple), but as far as I
can see it is all synchronous. If there would be a way to couple this
with an NSRunloop than I guess this might be a viable solution.
We prefer to use synchronous sockets and multiple threads, so
OmniNetworking is built to support that. It is a slightly more
complicated approach, but it does let you do more of your communication
handling in subthreads instead of the user interface thread, which can
improve the interactive response of your app.
So yes, if you are looking for asynchronous handling, OmniNetworking
probably isn't the right thing to use.
Hope this helps,
--Greg