---
title: NSFileHandleConnectionAccepted
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsnotification/name-swift.struct/nsfilehandleconnectionaccepted
---

# 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

```swift
static let NSFileHandleConnectionAccepted: NSNotification.Name
```

## Discussion

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:  |   |   |

## See Also

### Working with notifications

- [NSFileHandleDataAvailable](foundation/nsnotification/name-swift.struct/nsfilehandledataavailable.md)
- [readCompletionNotification](foundation/filehandle/readcompletionnotification.md)
- [NSFileHandleReadToEndOfFileCompletion](foundation/nsnotification/name-swift.struct/nsfilehandlereadtoendoffilecompletion.md)
