- CFSocketRef cf = CFSocketCreateWithNative(NULL, socket->m_fd, c,
- Mac_Socket_Callback, &cont);
- CFSocketDisableCallBacks(cf, kCFSocketReadCallBack | kCFSocketWriteCallBack);
+ CFSocketRef cf = CFSocketCreateWithNative(NULL, socket->m_fd,
+ ALL_CALLBACK_TYPES, Mac_Socket_Callback, &cont);