Gdnet for Godot 3

GDNet is an ENet wrapper for Godot 3, providing connection handling, sequencing, reliability, and more on top of UDP. It simplifies networking in Godot games by offering a thin wrapper around the ENet library.

https://github.com/PerduGames/gdnet3

GDNet: ENet Wrapper for Godot 3

GDNet is a module that wraps the ENet library for use in Godot 3. It offers a simplified way to implement networking features in your Godot games, providing connection handling, sequencing, reliability, channels, bandwidth throttling, packet fragmentation, and reassembly.

Key Features

  • ENet Wrapper: Provides a (mostly) thin wrapper around the ENet library.
  • Connection Management: Simplifies connection handling in Godot.
  • Reliable Communication: Offers features for reliable data transfer.
  • Bandwidth Throttling: Allows control over bandwidth usage.

Installation

To install GDNet, simply place the code into a gdnet3 directory within your godot/modules directory and build for your target platform. It has been verified to build on Linux (64 bit), MacOS X (32/64 bit), and Windows (32/64 bit cross-compiled using MinGW).

Usage Example

The provided example demonstrates basic client-server communication using GDNet. It showcases how to bind addresses, connect peers, send and receive data, and handle events such as connect and receive.

Resource Details

library

James McLean



3