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

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

  • Follow-Ups:
    • Re: CFSocket and wifi
      • From: Jens Alfke <email@hidden>
  • Prev by Date: wrapping multiple IBOutlet objects for reuse
  • Next by Date: Re: CFSocket and wifi
  • Previous by thread: Re: wrapping multiple IBOutlet objects for reuse
  • Next by thread: Re: CFSocket and wifi
  • Index(es):
    • Date
    • Thread