---
title: "copyPipe(withAddress:)"
framework: iousbhost
role: symbol
role_heading: Instance Method
path: "iousbhost/iousbhostinterface/copypipe(withaddress:)"
---

# copyPipe(withAddress:)

Copies a pipe for a specific endpoint address.

## Declaration

```swift
func copyPipe(withAddress address: Int) throws -> IOUSBHostPipe
```

## Parameters

- `address`: The endpoint address of the pipe.

## Return Value

Return Value An IOUSBHostPipe or nil if the system can’t create the pipe.

## Discussion

Discussion If the pipe returns successfully, the method maintains a reference to the IOUSBHostInterface.

## See Also

### Managing Pipes

- [selectAlternateSetting(_:)](iousbhost/iousbhostinterface/selectalternatesetting(_:).md)
