• 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: TCP/IP Connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >TCP/IP Connections (From: email@hidden)

  • Prev by Date: Avoiding memory fragmentation was Re: Cross platform Cocoa/Obj-C
  • Next by Date: Re: TCP/IP Connections
  • Previous by thread: TCP/IP Connections
  • Next by thread: Re: TCP/IP Connections
  • Index(es):
    • Date
    • Thread