# Connection

`import { Connection } from "destack:net";`

Owned stream socket.

```ds title="Connection"
export struct Connection {
    handle: SocketHandle;
}
```

[language/library/src/net/net.ds:15:18](https://github.com/destack-sh/destack/blob/main/language/library/src/net/net.ds#L15-L18)

## Members

### `handle: SocketHandle`

Host socket handle.
