<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtioSocketListenerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(pl)VZVirtioSocketListenerDelegate"
  },
  "title" : "VZVirtioSocketListenerDelegate"
}
-->

# VZVirtioSocketListenerDelegate

An interface you use to manage connections between the guest operating system and host computer.

```
protocol VZVirtioSocketListenerDelegate : NSObjectProtocol
```

## Overview

Adopt the [`VZVirtioSocketListenerDelegate`](/documentation/Virtualization/VZVirtioSocketListenerDelegate) protocol in a custom object and use it to accept or reject socket-based connection attempts from the guest operating system to the host computer. You may use the same object to manage connection attempts on multiple ports.

## Topics

### Accepting new connections

[`listener(_:shouldAcceptNewConnection:from:)`](/documentation/Virtualization/VZVirtioSocketListenerDelegate/listener(_:shouldAcceptNewConnection:from:))

Returns a Boolean value that indicates whether to accept a new connection from the guest operating system.



---

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)