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

CFSocketCallBack


  • Subject: CFSocketCallBack
  • From: Rob Kuilman <email@hidden>
  • Date: Thu, 14 Aug 2003 19:58:53 +0200

Hey All!

I'm not sure if i should post this message here, on or OpenTransport
dev. but since i think the problem is more Cocoa-related, i will post
it here :)

In my code, i call the following function.

_myConnection = CFSocketCreateConnectedToSocketSignature( NULL,
&mySocketAddress, kCFSocketReadCallBack | kCFSocketDataCallBack,
(CFSocketCallBack)&MyCallBack, NULL, 1);

the socket connects just fine, sending data to it goes just fine as
well, but receiving data does not.

i have a CFSocketCallBack function, like this:

void MyCallBack ( CFSocketRef s, CFSocketCallBackType callbackType,
CFDataRef address, const void *data, void *info )
{
NSLog(@"Got packet!");
};

but when i send data from the other side, to this endpoint, the
callback does not get called.

Am i missing something ? i wrote this little piece using this url:

http://developer.apple.com/documentation/CoreFoundation/Reference/
CFSocketRef/

Thanks in Advance!

Robert K.

-----------------------------{ Official Cocoa Newbie!
}-----------------------------
web: http://halfduplex.net/
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: CFSocketCallBack
      • From: Cameron Hayne <email@hidden>
    • Re: CFSocketCallBack
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: NSPanel nib with NSWindowController
  • Next by Date: Re: NSPanel nib with NSWindowController
  • Previous by thread: Re: NSPanel nib with NSWindowController
  • Next by thread: Re: CFSocketCallBack
  • Index(es):
    • Date
    • Thread