main
Dominik Madarász 2023-08-21 12:33:11 +02:00
parent 4391fa7b33
commit 4bc37fc6be
2 changed files with 92 additions and 41 deletions

View File

@ -2103,11 +2103,13 @@ enum { NETWORK_BIND = 2, NETWORK_CONNECT = 4, NETWORK_NOFAIL = 8 };
enum { MAX_CLIENTS = 32 };
void network_create(const char *ip, const char *port, unsigned flags);
enum { NETWORK_SEND = 2, NETWORK_RECV = 4 };
void* network_buffer(void *ptr, unsigned sz, unsigned flags, int64_t rank);
enum { NETWORK_UNRELIABLE = 8, NETWORK_UNORDERED = 16 };
void* network_buffer(void *ptr, unsigned sz, uint64_t flags, int64_t rank);
char** network_sync(unsigned timeout_ms);
enum { NETWORK_RANK = 0 };
enum { NETWORK_PING = 1 };
enum { NETWORK_PORT = 2, NETWORK_IP, NETWORK_LIVE };
enum { NETWORK_SEND_MS = 4 };
int64_t network_get(uint64_t key);
int64_t network_put(uint64_t key, int64_t value);
void network_rpc(const char *signature, void *function);
@ -2115,7 +2117,9 @@ enum { NETWORK_PORT = 2, NETWORK_IP, NETWORK_LIVE };
void network_rpc_send(unsigned id, const char *cmdline);
bool server_bind(int max_clients, int port);
void server_poll();
void server_broadcast_bin_flags(const void *ptr, int len, uint64_t flags);
void server_broadcast_bin(const void *ptr, int len);
void server_broadcast_flags(const char *msg, uint64_t flags);
void server_broadcast(const char *msg);
void server_terminate();
void server_send(int64_t handle, const char *msg);

File diff suppressed because one or more lines are too long