C++ SDK
The C++ SDK provides native integration for C++ game servers and custom game engines.Installation
The C++ SDK uses CMake for building and can be integrated into your project.Prerequisites
- CMake 3.15+
- C++17 compatible compiler
- gRPC and Protobuf
Building from Source
CMake Integration
CMakeLists.txt
Quick Start
main.cpp
SDK Reference
Connection
Lifecycle Methods
Health Checking
Metadata
State Monitoring
Error Handling
All SDK methods returngrpc::Status. Check the status:
Best Practices
- Check the return status of all SDK calls
- Run health checks in a separate thread
- Call
Shutdown()before exiting - Use smart pointers for SDK lifecycle management
Example Code
See the cpp-simple example for a complete implementation.Next Steps
SDK Overview
Compare all available SDKs
API Reference
Complete SDK API documentation
