16 lines
282 B
C
16 lines
282 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
int sock;
|
|
int conn;
|
|
} MultiPlayer;
|
|
|
|
MultiPlayer MultiPlayer_alloc(
|
|
const char *server_host,
|
|
const uint16_t server_port
|
|
);
|
|
void MultiPlayer_free(MultiPlayer *const mp);
|
|
void MultiPlayer_tick(MultiPlayer *const mp);
|