Nakama C++ Client SDK 2.5.1
Client for Nakama Server
NClientParameters Struct Reference

#include <ClientFactory.h>

Public Attributes

std::string serverKey = "defaultkey"
 The key used to authenticate with the server without a session. Defaults to "defaultkey". More...
 
std::string host = "127.0.0.1"
 The host address of the server. Defaults to "127.0.0.1". More...
 
int32_t port = DEFAULT_PORT
 
bool ssl = false
 

Member Data Documentation

◆ host

std::string NClientParameters::host = "127.0.0.1"

The host address of the server. Defaults to "127.0.0.1".

◆ port

int32_t NClientParameters::port = DEFAULT_PORT

The port number of the server. Default server ports (can be changed in the server config): 7349 - gRPC API 7350 - HTTP API 443 - gRPC & HTTP API if SSL is enabled

◆ serverKey

std::string NClientParameters::serverKey = "defaultkey"

The key used to authenticate with the server without a session. Defaults to "defaultkey".

◆ ssl

bool NClientParameters::ssl = false

Set connection strings to use the secure mode with the server. Defaults to false. The server must be configured to make use of this option. With HTTP, GRPC, and WebSockets the server must be configured with an SSL certificate or use a load balancer which performs SSL termination. For rUDP you must configure the server to expose it's IP address so it can be bundled within session tokens. See the server documentation for more information.


The documentation for this struct was generated from the following file: