• 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: Anyone used btlsocket framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anyone used btlsocket framework?


  • Subject: Re: Anyone used btlsocket framework?
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 10 May 2008 12:11:07 -0700


On 10 May '08, at 11:59 AM, Wade Tregaskis wrote:

I haven't used it directly, but I did notice when looking at it that it seems to rely on you polling it... that's terrible, given you can setup a socket as a runloop source very easily and it operates very efficiently.

By Jove, you're right! From BTLSocketManager:

//! \brief Updates the sockets.
//!
//! This method should be called often. Managed sockets will not recieve data or
//! finish pending connections until this method is called. NSTimer can be used
//! to call this method on a regular basis.


- (void)select

That is just absurd. It might have been excusable ten years ago in the classic OS, when threading and asynchrony were so difficult, but as you point out, you pretty much have to go out of your way to be this badly-behaved on Mac OS X.

Let us never speak of it again :-/

Anyone got a good socket framework to recommend? (I realize it's not that hard to roll your own with NSStreams, as shown in CocoaSockets, but a framework with a few more bells & whistles would be nice.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Anyone used btlsocket framework?
      • From: Ricky Sharp <email@hidden>
    • Re: Anyone used btlsocket framework?
      • From: Michael Gardner <email@hidden>
    • Re: Anyone used btlsocket framework?
      • From: Robert Claeson <email@hidden>
References: 
 >Anyone used btlsocket framework? (From: Jens Alfke <email@hidden>)
 >Re: Anyone used btlsocket framework? (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: Re: Core Data: How to Observe "dirty" State?
  • Next by Date: Re: Anyone used btlsocket framework?
  • Previous by thread: Re: Anyone used btlsocket framework?
  • Next by thread: Re: Anyone used btlsocket framework?
  • Index(es):
    • Date
    • Thread