Connect to Server from Diarkis Client
Introduction
This page explains how to connect to and communicate with a Diarkis server, started using the "Starting a Diarkis Server Locally" guide, using the C++ room_broadcast
sample. In the room_broadcast
sample, a virtual room is created on the Diarkis server using the Room module, allowing two users to connect and exchange data with each other. For a detailed explanation of the sample, please refer to room_broadcast.
Windows Environment
Open
samples/room_broadcast/win-x64/room_broadcast.sln
in Visual Studio.Specify the command arguments under Project > Properties > Debugging.
Build and launch the program with F5. Once the sample program starts, and upon connecting to the Diarkis server, the following log will be displayed:
The
room_broadcast
sample waits for multiple users to connect to the room before proceeding with the sample processes. If only one user connects, the program will wait for other users to connect.Run multiple clients as separate processes from a Windows terminal (command prompt), etc. The executable is output to
samples/room_broadcast/win-x64/x64/Debug/bin/room_broadcast.exe
.When two users connect to the Diarkis server, the following log is displayed, confirming that data transfer through the Room module of the Diarkis server is taking place.
macOS Environment
Coming Soon
Linux Environment
Coming Soon
Last updated
Was this helpful?