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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to