- /* Turn off kCFSocketCloseOnInvalidate (NOTE: > 10.2 only!) */
- /* Another default flag that we don't turn on here is for DataCallBack and
- also AcceptCallback (which overlap in bits) which we don't use anyway */
- /* FIXME: For < 10.2 compatibility fix GSocket to call a platform-dependent
- function to close the socket so that we can just call invalidate and
- avoid having to set any special flags at all. */
- CFSocketSetSocketFlags(cf, kCFSocketAutomaticallyReenableReadCallBack | kCFSocketAutomaticallyReenableWriteCallBack);