<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZFileHandleNetworkDeviceAttachment/init(fileHandle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZFileHandleNetworkDeviceAttachment(im)initWithFileHandle:"
  },
  "title" : "init(fileHandle:)"
}
-->

# init(fileHandle:)

Creates the attachment from a file handle that contains a connected datagram socket.

```
init(fileHandle: FileHandle)
```

## Parameters

`fileHandle`

A file handle to a connected datagram socket.

## Return Value

An attachment object for the specified file handle.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)