• 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: CFSocket and wifi
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFSocket and wifi


  • Subject: Re: CFSocket and wifi
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 24 Jun 2008 11:51:15 -0700


On 24 Jun '08, at 11:27 AM, sheen mac wrote:

I am working on a server-client application for live video broadcast using CFSocket.Its working good in LAN connection.But when I changed it into
wifi network .It gets blocked after a few seconds.

There's nothing fundamentally different. What's probably going on is some variation in timing that's exposing a bug in your code, most likely where you're handling reading or writing data.


Is there a reason you're not using NSStream or CFStream instead? Those are higher-level APIs that are easier to work with (especially since NSStream is Objective-C.) My "MYNetwork" library includes a generic TCP client/listener; you could subclass those or just look at the code for hints.
http://mooseyard.com/hg/hgwebdir.cgi/MYNetwork/


—Jens_______________________________________________

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


References: 
 >CFSocket and wifi (From: sheen mac <email@hidden>)

  • Prev by Date: CFSocket and wifi
  • Next by Date: SetControlReference equivalent in NSControl?
  • Previous by thread: CFSocket and wifi
  • Next by thread: SetControlReference equivalent in NSControl?
  • Index(es):
    • Date
    • Thread