---
title: VZSocketDevice
framework: virtualization
role: symbol
role_heading: Class
path: virtualization/vzsocketdevice
---

# VZSocketDevice

The common behavior of socket devices.

## Declaration

```swift
class VZSocketDevice
```

## Overview

Overview Don’t create or use a VZSocketDevice object directly. If your virtual machine’s configuration includes a VZVirtioSocketDeviceConfiguration object, the virtual machine returns a VZVirtioSocketDevice object in its socketDevices property. Use that object to configure the port-based communications for your virtual machine.

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [VZVirtioSocketDevice](virtualization/vzvirtiosocketdevice.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

### Devices

- [VZVirtioSocketDevice](virtualization/vzvirtiosocketdevice.md)
