Skip to main content

Crate rust_raknet

Crate rust_raknet 

Source
Expand description

An asynchronous implementation of the RakNet transport protocol in Rust.

RakNet provides reliable and ordered delivery modes over UDP and is used by Minecraft Bedrock Edition. This library implements the connection handshake, packet reliability, fragmentation, and listener/client APIs.

The library requires the Tokio 1.x asynchronous runtime.

§Features

  • Asynchronous client and server APIs
  • Five RakNet reliability modes
  • Selective retransmission and fast acknowledgements
  • IPv4 and IPv6 socket addresses

§Getting started

[dependencies]
rust-raknet = "1.4.0"

§Reliability modes

  • Unreliable
  • Unreliable sequenced
  • Reliable
  • Reliable ordered
  • Reliable sequenced

This project is not affiliated with Jenkins Software LLC or RakNet. See the RakNet protocol reference.

Modules§

error

Macros§

raknet_log_debug
Print a debug log when debug logging is enabled.
raknet_log_error
Print an error log when error logging is enabled.
raknet_log_info
Print an info log when info logging is enabled.

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
RaknetListener
A RakNet UDP server that accepts incoming connections.
RaknetSocket
A RakNet connection backed by a UDP socket.

Enums§

Reliability
Delivery and ordering guarantees for a RakNet frame.

Functions§

enable_raknet_log
Sets the log categories to print.