A fast, reliable, and easy-to-use RakNet implementation in Zig. Perfect for game networking, especially for Minecraft Bedrock Edition clients.
- ๐ฅ Zig implementation - no external dependencies
- ๐ High-performance networking with non-blocking I/O
- ๐ก๏ธ Reliable and ordered packet delivery
- ๐ฎ Minecraft Bedrock Edition compatible
git clone https://github.com/AnyBananaGAME/ZigRaknet.git
cd ZigRaknet
zig build
Here's a simple example of how to create a client and connect to a RakNet server:
const Client = @import("./src/client/client.zig").Client;
const std = @import("std");
var client = try Client.init("127.0.0.1", 19132);
defer client.deinit();
try client.connect();
while (true) {
std.time.sleep(50 * std.time.ns_per_ms);
try client.tick();
}
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
This project is licensed under the Apache-2.0 License.
- Thanks to a user on Discord (akashic_records_of_the_abyss) for the name suggestion
- Inspired by the RakNet protocol