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