Re: CFSocket and wifi
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