<!--
{
  "documentType" : "article",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/sockets",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Sockets"
}
-->

# Sockets

Configure a device that manages port-based communication with the guest system.

## Topics

### Configurations

[`class VZVirtioSocketDeviceConfiguration`](/documentation/Virtualization/VZVirtioSocketDeviceConfiguration)

A configuration object that requests the creation of a socket device to communicate with the guest system.

[`class VZSocketDeviceConfiguration`](/documentation/Virtualization/VZSocketDeviceConfiguration)

The common configuration traits for socket device requests.

### Devices

[`class VZVirtioSocketDevice`](/documentation/Virtualization/VZVirtioSocketDevice)

A device that manages port-based connections between the guest system and the host computer.

[`class VZSocketDevice`](/documentation/Virtualization/VZSocketDevice)

The common behavior of socket devices.

### Connection management

[`class VZVirtioSocketListener`](/documentation/Virtualization/VZVirtioSocketListener)

An object that listens for port-based connection requests from the guest operating system.

[`class VZVirtioSocketConnection`](/documentation/Virtualization/VZVirtioSocketConnection)

A port-based connection between the guest operating system and the host computer.



---

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)