Type Property

NSFileHandleConnectionAccepted

This notification is posted when an NSFileHandle object establishes a socket connection between two processes, creates an NSFileHandle object for one end of the connection, and makes this object available to observers by putting it in the userInfo dictionary.

Declaration

static let NSFileHandleConnectionAccepted: NSNotification.Name

Discussion

To cause the posting of this notification, you must send either acceptConnectionInBackgroundAndNotify() or acceptConnectionInBackgroundAndNotify(forModes:) to an NSFileHandle object representing a server stream-type socket.

The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information:

Key

Value

NSFileHandleNotificationFileHandleItem

The NSFileHandle object representing the “near” end of a socket connection

@"NSFileHandleError"

An NSNumber object containing an integer representing the UNIX-type error which occurred