Hi,
Hopefully this is just a quick fix.
I've created a socket to recieve data, like so;
This works fine. My callback function works and I can print to console.
The problem I have is that I can't access any of my class variables, they create "undefined variable" errors..
I'm still new to this - any help would be great.
Hopefully this is just a quick fix.
I've created a socket to recieve data, like so;
Code:
- (void) createSocket {
CFSocketRef socket;
socket = CFSocketCreate(kCFAllocatorDefault, 0, 0, 0, kCFSocketDataCallBack, rxData, NULL);
This works fine. My callback function works and I can print to console.
Code:
void rxData(CFSocketRef s, CFSocketCallBackType callbacktype, CFDataRef address, const void *data, void *info) {
printf("rx some data\n");
}
The problem I have is that I can't access any of my class variables, they create "undefined variable" errors..
I'm still new to this - any help would be great.