# アンチフラッディング

> Implement anti-flooding measures for text chat.

> **Note:**
>
> この機能はオープンベータ期間中です。

サインイン前のパラメーター `MaxTextMessageRate` を設定することにより、レート制限を設定します。0 に設定すると、この機能は無効になります。

レート制限は Vivox SDK によって強制されます。ユーザーが許可されているよりも高いレートでメッセージを送信しようとすると、`VxErrorMessageTextRateExceeded` エラーが返されます。

```text
vx_req_account_send_msg *req;
vx_req_account_send_msg_create(&req);
req->connector_handle = vx_strdup("c1");
req->account_handle = vx_strdup(".issuer-w-dev.mytestaccountname.");
req->language = vx_strdup(“en-us”);
req->user_uri = vx_strdup("sip:theotheruser@vd1.vivox.com");
req->message_body = vx_strdup("Hey there buddy!");
int status = vx_issue_request2(&req->base); // If rate limiting is surpassed, status = VxErrorMessageTextRateExceeded
```
