<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IOUSBHost",
  "identifier" : "/documentation/IOUSBHost/IOUSBHostInterface/copyPipe(withAddress:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOUSBHost"
    ],
    "preciseIdentifier" : "c:objc(cs)IOUSBHostInterface(im)copyPipeWithAddress:error:"
  },
  "title" : "copyPipe(withAddress:)"
}
-->

# copyPipe(withAddress:)

Copies a pipe for a specific endpoint address.

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

## Parameters

`address`

The endpoint address of the pipe.

## Return Value

An [`IOUSBHostPipe`](/documentation/IOUSBHost/IOUSBHostPipe) or <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0> if the system can’t create the pipe.

## Discussion

If the pipe returns successfully, the method maintains a reference to the [`IOUSBHostInterface`](/documentation/IOUSBHost/IOUSBHostInterface).

---

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)