Skip navigation.
 
mlRe: CFSocket and wifi
FROM : Jens Alfke
DATE : Tue Jun 24 20:51:15 2008

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_removed>)

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:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>

This email sent to <email_removed>

Related mailsAuthorDate
mlCFSocket and wifi sheen mac Jun 24, 20:27
mlRe: CFSocket and wifi Jens Alfke Jun 24, 20:51