ecsnet
Loading...
Searching...
No Matches
network_architecture_config_t Struct Reference

Structure for configuring the network architecture. More...

#include <network_architecture.h>

Public Attributes

network_architecture_type_t type
const char * ip_address
uint16_t port
bool is_server
uint16_t tcp_port
uint16_t udp_port
float ecs_sync_hz
void(* on_peer_connected )(void *user_data, peer_t *peer)
void(* on_peer_disconnected )(void *user_data, peer_t *peer)
void(* on_packet_received )(void *user_data, peer_t *peer, const void *data, int len)
void(* on_client_input )(void *user_data, peer_t *from, entity_t entity_id, uint8_t cmd, const void *extra, uint16_t extra_len)
void * user_data

Detailed Description

Structure for configuring the network architecture.

Member Data Documentation

◆ ecs_sync_hz

float network_architecture_config_t::ecs_sync_hz

The ECS synchronization frequency in Hz.

◆ ip_address

const char* network_architecture_config_t::ip_address

The IP address to bind to or connect to.

◆ is_server

bool network_architecture_config_t::is_server

A flag indicating if the instance is a server.

◆ port

uint16_t network_architecture_config_t::port

The main port for communication.

◆ tcp_port

uint16_t network_architecture_config_t::tcp_port

The TCP port to use.

◆ type

network_architecture_type_t network_architecture_config_t::type

The type of network architecture to use.

◆ udp_port

uint16_t network_architecture_config_t::udp_port

The UDP port to use.

◆ user_data

void* network_architecture_config_t::user_data

User data passed to callbacks


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