CFSocket and wifi
CFSocket and wifi
- Subject: CFSocket and wifi
- From: sheen mac <email@hidden>
- Date: Tue, 24 Jun 2008 11:27:09 -0700 (PDT)
Hi All,
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.
Kindly help me.
Thanks In Advance,
Sheen
Code
===========
// create socket
mSocketRef = CFSocketCreate( kCFAllocatorDefault, PF_INET, SOCK_STREAM, IPPROTO_TCP, kCallbackTypes,
(CFSocketCallBack)VideoSocket::_SocketCallBack, context );
// Create socket runloop source
mRunLoopSource = CFSocketCreateRunLoopSource(kCFAllocatorDefault, mSocketRef, 0);
if(mRunLoopSource == NULL)
{
fprintf(stderr, "DCSocket::Failed to create runloop source" );
return false;
}
// add socket source to runloop
CFRunLoopAddSource(CFRunLoopGetCurrent(), mRunLoopSource, kCFRunLoopDefaultMode);
CFRelease(mRunLoopSource);
_______________________________________________
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