# zx::port

## Summary

### Inheritance

Inherits from: [zx::object\< port \>](https://fuchsia.dev/reference/cpp/class/zx/object)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1a04e3025f7c9c735b2aed4aa93aed9ceb()` ||
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1a1fb9f4591134e6228e909da083ed8905(zx_handle_t value)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1a0529f28258eb2cbfd5444e9e0bef6c86(https://fuchsia.dev/reference/cpp/class/zx/object#classzx_1_1object && h)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1a69fa35d87869e2e3b86fb8d3121d86c6(https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port && other)` ||

| ### Public static attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1aaa6a014d2cc4704db95722804026cbb2 = ZX_OBJ_TYPE_PORT` | `constexpr zx_obj_type_t` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1ae6173d87de074a96b0a813dd1e1a71c5(const https://fuchsia.dev/reference/cpp/class/zx/object-base#classzx_1_1object__base & source, uint64_t key)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1a73dc92036e900f945c7a7447fe991f88(uint32_t options, uint64_t key)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1a100320567be3f09e28f56dae2e426967(https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port && other)` | `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port &` |
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1a42b1e2a49b2ccfec3cfd71cb091a7c00(const https://fuchsia.dev/reference/cpp/struct/zx-port-packet#structzx__port__packet *packet)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1acf02b384e94a24f19d0e71e70989bd7e(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time deadline, https://fuchsia.dev/reference/cpp/struct/zx-port-packet#structzx__port__packet *packet)` | `zx_status_t` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port_1adbc6fdf61480f783ce5dee799618fd9d(uint32_t options, https://fuchsia.dev/reference/cpp/class/zx/port#classzx_1_1port *result)` | `zx_status_t` |

## Public static attributes

### TYPE

```c++
constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_PORT
```

## Public functions

### cancel

```c++
zx_status_t cancel(
  const object_base & source,
  uint64_t key
)
```

### cancel_key

```c++
zx_status_t cancel_key(
  uint32_t options,
  uint64_t key
)
```

### operator=

```c++
port & operator=(
  port && other
)
```

### port

```c++
constexpr port()=default
```

### port

```c++
 port(
  zx_handle_t value
)
```

### port

```c++
 port(
  handle && h
)
```

### port

```c++
 port(
  port && other
)
```

### queue

```c++
zx_status_t queue(
  const zx_port_packet_t *packet
)
```

### wait

```c++
zx_status_t wait(
  zx::time deadline,
  zx_port_packet_t *packet
)
```

## Public static functions

### create

```c++
zx_status_t create(
  uint32_t options,
  port *result
)
```