/enet-example

A client and server implementation using ENet

Primary LanguageC++

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 git@github.com: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