Files
Cesarus85--ringfall-mjolnir-vr/source/networking/network_connection.h
T

46 lines
971 B
C

/*
NETWORK_CONNECTION.H
header included in hcex build.
*/
#ifndef __NETWORK_CONNECTION_H
#define __NETWORK_CONNECTION_H
#pragma once
/* ---------- constants */
enum
{
MAXIMUM_NUMBER_OF_LOCAL_PLAYERS = 4,
};
/* ---------- macros */
/* ---------- structures */
struct network_connection;
/* ---------- prototypes/EXAMPLE.C */
void network_connection_initialize(
void);
void network_connection_set_connection_rejection_procedure(
struct network_connection *connection,
void *connection_rejection_procedure);
boolean network_connection_active(
struct network_connection *connection);
boolean network_connection_going_stale(
struct network_connection *connection);
void network_connection_keep_alive(
struct network_connection *connection);
void network_server_allow_client_connections(
struct network_connection *server_connection,
boolean allow_client_connections);
/* ---------- globals */
/* ---------- public code */
#endif // __NETWORK_CONNECTION_H