// start up the server after socket was created, then accept connections until interrupted, then shutdown server
static void server_run(int fd)
{
- server.config.simulation_distance = 10;
-
server.sockfd = fd;
pthread_rwlock_init(&server.clients_rwlck, NULL);
server.clients = list_create(NULL);