---
title: VZVirtioSocketListenerDelegate
framework: virtualization
role: symbol
role_heading: Protocol
path: virtualization/vzvirtiosocketlistenerdelegate
---

# VZVirtioSocketListenerDelegate

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

## Declaration

```swift
protocol VZVirtioSocketListenerDelegate : NSObjectProtocol
```

## Overview

Overview Adopt the 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:)](virtualization/vzvirtiosocketlistenerdelegate/listener(_:shouldacceptnewconnection:from:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Responding to new connections

- [delegate](virtualization/vzvirtiosocketlistener/delegate.md)
