CFSocketCallBack
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.