• 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: Robert Kuilman <email@hidden>
  • Date: Thu, 14 Aug 2003 20:39:07 +0200

Hey All!

I posted this question to the CocoaDev mailinglist, but there i did not
get the solution, i hope you guys can help me out

In my code, i call the following function.

_myConnection = CFSocketCreateConnectedToSocketSignature( NULL,
&mySocketAddress, kCFSocketReadCallBack ,
(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
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: CFSocketCallback
      • From: Quinn <email@hidden>
  • Prev by Date: Re: CFSocketConnectToAddress
  • Next by Date: Re: CFSocketCallback
  • Previous by thread: Re: CFSocketConnectToAddress
  • Next by thread: Re: CFSocketCallback
  • Index(es):
    • Date
    • Thread