enet-example icon indicating copy to clipboard operation
enet-example copied to clipboard

A client and server implementation using ENet

ENet Example

A client and server implementation using ENet.

Dependencies

Linux

Install CMake:

sudo aptitude install cmake

Install Dependencies:

sudo aptitude install clang-format
sudo aptitude install libglm-dev
sudo aptitude install libsdl2-dev
sudo aptitude install libenet-dev
sudo aptitude install libepoxy-dev

OSX

Install CMake:

brew install cmake

Install Dependencies:

brew install clang-format
brew install glm
brew install sdl2
brew install enet
brew install libepoxy

Build

Clone the repo:

git clone [email protected]:kbirk/enet-example.git

Build the Makefile:

cd enet-example
mkdir build
cd build
cmake ../

Build the executables:

make

Usage

Run the server executable:

./server

Run a client executable:

./client