> For the complete documentation index, see [llms.txt](https://help.diarkis.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.diarkis.io/en/getting-started/sample.md).

# Samples

We introduce modules and use-case specific samples using Diarkis.

The Diarkis Client SDK offers various examples.

## C++ Samples

These are sample programs demonstrating how to use the C++ version of the client runtime. They are located under `samples` in the C++ version of the Diarkis Client SDK package.\
For more details, refer to `SAMPLE_README.md` included in the C++ version of the Diarkis Client SDK package.

* [directmessage\_simple](/en/diarkis-client/samples/unity.md)
  * This is a sample program introducing the basic usage of the DM module.
* [group\_sample](/en/diarkis-client/samples/cpp/matching-and-turn.md)
  * This sample program demonstrates how to use the Group module.
* [matching\_and\_turn](/en/diarkis-client/samples/cpp/matchmaker-ticket.md)
  * This is a sample where, after connecting to a Diarkis server and using the MatchMaker module for matchmaking, you reconnect to another Diarkis server and enter the same Room as the matched user for communication. It represents a common flow implemented with Diarkis in games, for example.
* [matchmaker\_ticket](/en/diarkis-client/samples/cpp/p2p-rudp-sample.md)
  * This is a sample program demonstrating how to use the ticket function of the MatchMaker.
* [p2p\_rudp\_sample](/en/diarkis-client/samples/cpp/session-simple.md)
  * This sample program demonstrates how to use the RUDP feature of the P2P module.
* [room\_broadcast](/en/diarkis-modules/room/sample/room-broadcast.md)
  * This is a sample program using both the Room module and the P2P module. It introduces the usage of relay communication via Room and P2P communication.
* [session\_simple](https://github.com/Diarkis/diarkis-help-center/blob/main/gitbook/renewal/en/getting-started/broken-reference/README.md)
  * This is a sample introducing the basic usage of the Session module.

## C++ Unreal Engine Plugin Samples

* [FieldWalker](/en/diarkis-client/samples/unreal-engine/field-walker.md)
  * This is a sample incorporating the C++ version of the client SDK as a plugin in Unreal Engine.\
    This sample offers an integrated example using multiple modules of **Diarkis** for position synchronization, message sending and receiving, matchmaking, etc.

## C# Unity Plugin Samples

* [FieldWalker](/en/diarkis-client/samples/unity/field-walker.md)
  * This is a sample incorporating the C# version of the client SDK as a plugin in Unity.\
    This sample provides an integrated example using multiple modules of **Diarkis** for position synchronization, message sending and receiving, matchmaking, etc.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.diarkis.io/en/getting-started/sample.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
