Type Property 型プロパティ

NSFileHandleConnectionAccepted

Posted when a file handle object establishes a socket connection between two processes, creates a file handle object for one end of the connection, and makes this object available to observers.

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. この通知を投函することを引き起こすには、あなたはacceptConnectionInBackgroundAndNotify()またはacceptConnectionInBackgroundAndNotify(forModes:)のどちらかをサーバーストリーム型ソケットを表しているNSFileHandleオブジェクトに送る必要があります。

The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information: 通知オブジェクトは、通知を送ったNSFileHandleオブジェクトです。userInfo辞書は、以下の情報を含みます:

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.

See Also 参照

Foundation ファウンデーション