> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sensor-bridge/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sensor-bridge/_mcp/server.

# hololink::emulation::RoCEv2DataPlane

> The DataPlane implementation for RoCEv2 UDP transport.

The [DataPlane](dataplane) implementation for RoCEv2 UDP transport.

```cpp showLineNumbers={false}
#include <hololink/emulation/rocev2_data_plane.hpp>
```

**Inherits from:** `hololink::emulation::DataPlane` (public)

---

## Constructors

### RoCEv2DataPlane \[#rocev2dataplane]

```cpp showLineNumbers={false}
hololink::emulation::RoCEv2DataPlane::RoCEv2DataPlane(
    HSBEmulator &hsb_emulator,
    const IPAddress &source_ip,
    uint8_t data_plane_id,
    uint8_t sensor_id
)
```

Construct a new `RoCEv2DataPlane` object.

python:

`def __init__(self: hemu.RoCEv2DataPlane, hsb_emulator: hemu.HSBEmulator, source_ip: hemu.IPAddress, data_plane_id: int, sensor_id: int)`

**Parameters**

**`hsb_emulator`** `HSBEmulator &`

The [HSBEmulator](hsbemulator) object to attach to.

---

**`source_ip`** `const IPAddress &`

The IP address of the [DataPlane](dataplane).

---

**`data_plane_id`** `uint8_t`

The identifying index of the [DataPlane](dataplane).

---

**`sensor_id`** `uint8_t`

The identifying index of the sensor interface associated with the [DataPlane](dataplane).

---

### Destructor \[#destructor]

### \~RoCEv2DataPlane

```cpp showLineNumbers={false}
hololink::emulation::RoCEv2DataPlane::~RoCEv2DataPlane()
```

---

## Methods

### update\_metadata \[#updatemetadata]

```cpp showLineNumbers={false}
void hololink::emulation::RoCEv2DataPlane::update_metadata() override
```

Update the TransmissionMetadata for the `RoCEv2DataPlane`.

Only one thread may call [RoCEv2DataPlane::send](dataplane#send) at a time. DataPlane::send() ensures thread safety.

---

## Member variables

| Name    | Type       | Description |
| ------- | ---------- | ----------- |
| `page_` | `uint32_t` |             |