• 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
Managing Multiple Connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Managing Multiple Connections


  • Subject: Managing Multiple Connections
  • From: Dietrich Epp <email@hidden>
  • Date: Wed, 21 May 2003 01:05:43 -0700

What is a good way to manage multiple connections (OSX)? Most of my documentation is UNIX-specific, and my first thought was to create a thread that manages all connections using the select(2) system call. Unfortunately, this means that communication with the thread must either be done using a timeout (ick), signals (double ick), or file descriptors (ick squared). My second thought is to create a thread for each connection, but this seems excessive.

I'm sure this situation is relatively common (e.g. downloading things in a web browser) and I'm probably making things more complicated than they should be.

Is there some good technique I'm missing? It would be great if it were cross-platform, but OSX-specific is good too.

--Dietrich
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Managing Multiple Connections
      • From: Becky Willrich <email@hidden>
    • Re: Managing Multiple Connections
      • From: "Duane Murphy" <email@hidden>
    • Re: Managing Multiple Connections
      • From: Lyndsey Ferguson <email@hidden>
  • Prev by Date: Re: [Off-Topic?] Resources for developing Internet plug-ins for
  • Next by Date: Re: Managing Multiple Connections
  • Previous by thread: Re: [Off-Topic?] Resources for developing Internet plug-ins for
  • Next by thread: Re: Managing Multiple Connections
  • Index(es):
    • Date
    • Thread