|
ecsnet
|
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 |
Structure for configuring the network architecture.
| float network_architecture_config_t::ecs_sync_hz |
The ECS synchronization frequency in Hz.
| const char* network_architecture_config_t::ip_address |
The IP address to bind to or connect to.
| bool network_architecture_config_t::is_server |
A flag indicating if the instance is a server.
| uint16_t network_architecture_config_t::port |
The main port for communication.
| uint16_t network_architecture_config_t::tcp_port |
The TCP port to use.
| network_architecture_type_t network_architecture_config_t::type |
The type of network architecture to use.
| uint16_t network_architecture_config_t::udp_port |
The UDP port to use.
| void* network_architecture_config_t::user_data |
User data passed to callbacks