---
title: closeTransportConnection()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/obexsession/closetransportconnection()
---

# closeTransportConnection()

You must override this - it will be called when the transport connection should be shutdown.

## Declaration

```swift
func closeTransportConnection() -> OBEXError
```

## Return Value

Return Value Return whether or not the transport connection was closed successfully or not. Return OBEXSuccess ( 0 ) on success, otherwise an error code.

## Discussion

Discussion Tranport subclasses must override this! When called you should take whatever steps are necessary to actually close down the transport connection.
