Code Monkey home page Code Monkey logo

enet_single's Introduction

About

Fork of the ENet library.

What's different from the original ENet:

  • All code is contained in two files: enet.h and enet.c for easy integration in your project.
  • All system includes have been moved into the .c. This is to avoid cluttering the global namespace. For example, the original ENet includes windows headers that define min and max, which can cause conflicts with user's functions.
  • There is a small CMakeLists.txt in case your project uses CMake (but it's entirely optional).
  • Added enet_get_lan_broadcast_ip_addresses function. It helps you find out the IP addresses you can use to broadcast messages in the LAN.

How to integrate in your project

  • Copy enet.h and enet.c to some folder in your project.
  • Add enet.c to the list of compiled files.

How to integrate using CMake

  • Make an enet/ subfolder in your project.
  • Copy enet.h, enet.c and CMakeLists.txt inside enet/.
  • Inside the CMakeLists.txt of your project, add add_subdirectory(enet) and target_link_libraries(<my_project> <other_libs> enet).

enet_single's People

Contributors

tuket avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.