2021-01-11 13:47:14 +00:00
|
|
|
#pragma once
|
2021-01-17 07:03:06 +00:00
|
|
|
|
|
|
|
int32_t network_init(void);
|
|
|
|
int32_t network_destroy(void);
|
|
|
|
|
|
|
|
int32_t network_server_start(const char *host, uint16_t port);
|
|
|
|
int32_t network_server_stop(void);
|
|
|
|
int32_t network_server_tick(void);
|
|
|
|
void network_server_update(void *data);
|
2021-01-17 23:09:29 +00:00
|
|
|
|
2021-01-18 12:16:38 +00:00
|
|
|
uint64_t network_client_create(uint16_t peer_id);
|
|
|
|
void network_client_destroy(uint64_t ent_id);
|