ENet is a library for reliable communication on top of UDP.
ENet's purpose is to provide a relatively thin, simple and robust network communication layer on top of UDP. The primary feature it provides is optional reliable, in-order delivery of packets. ENet is NOT intended to be a general purpose high level networking library that handles authentication, lobbying, server discovery, compression, encryption and other high level, often application level or dependent tasks.
To install libenet, paste this in macOS terminal after installing MacPorts
sudo port install libenet