Accepts a socket connection (for stream-type sockets only) in the background and creates a file handle for the “near” (client) end of the communications channel.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The runloop modes in which the connection accepted notification can be posted.
accept for details of how this method operates. This method differs from
accept in that
modes specifies the run-loop mode (or modes) in which
NSFile can be posted.
You must call this method from a thread that has an active run loop.