---
title: VZFileHandleSerialPortAttachment
framework: virtualization
role: symbol
role_heading: Class
path: virtualization/vzfilehandleserialportattachment
---

# VZFileHandleSerialPortAttachment

An attachment point that allows bidirectional communication using file handles.

## Declaration

```swift
class VZFileHandleSerialPortAttachment
```

## Overview

Overview Use a VZFileHandleSerialPortAttachment object to configure a serial port using separate file handles for reading and writing data. In your virtual machine, use the file handles in this object in the following way: To send data to the guest operating system, write data to the file handle in the fileHandleForReading property. To receive data from the guest operating system, read data from the file handle in the fileHandleForWriting property.

## Topics

### Creating the attachment point

- [init(fileHandleForReading:fileHandleForWriting:)](virtualization/vzfilehandleserialportattachment/init(filehandleforreading:filehandleforwriting:).md)

### Getting the file handles

- [fileHandleForReading](virtualization/vzfilehandleserialportattachment/filehandleforreading.md)
- [fileHandleForWriting](virtualization/vzfilehandleserialportattachment/filehandleforwriting.md)

## Relationships

### Inherits From

- [VZSerialPortAttachment](virtualization/vzserialportattachment.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Attachment points

- [VZFileSerialPortAttachment](virtualization/vzfileserialportattachment.md)
- [VZSerialPortAttachment](virtualization/vzserialportattachment.md)
