---
title: close()
framework: virtualization
role: symbol
role_heading: Instance Method
path: virtualization/vzvirtiosocketconnection/close()
---

# close()

Close the file descriptor associated with the socket.

## Declaration

```swift
func close()
```
