# RtcConnection (/zh-CN/api-reference/rtc/unreal-cpp/class-rtcconnection)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_rtcconnection__prototype"></a>

```cpp
struct RtcConnection {
  const char* channelId;
  uid_t localUid;

  RtcConnection() : RtcConnection(NULL, 0) {}
  RtcConnection(const char* channel_id, uid_t local_uid)
      : channelId(channel_id), localUid(local_uid) {}
};
```

<a id="class_rtcconnection__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="channelid"></a>
<Parameter name="channelId">

频道名。

</Parameter>
<a id="localuid"></a>
<Parameter name="localUid">

本地用户 ID。

</Parameter>
</ParameterList>
