Crate valence_network
source ·Expand description
§valence_network
The plugin responsible for accepting connections and spawning clients.
This covers everything in the “handshaking”, “status” and “login” stages of the protocol, before the main “play” stage begins. Support for proxies like Velocity and BungeeCord are implemented here.
Valence users can choose not to include valence_network
in their project. This could be useful for testing or using Valence as an integrated server in a client.
Structs§
- A type-erased wrapper around an
NetworkCallbacks
object. - Basic information about a client, provided at the beginning of the connection
- Settings for
NetworkPlugin
. Note that mutations to these fields have no effect after the plugin is built. - Contains information about a new client joining the server.
- Represents an individual entry in the player sample.
- Response data of the legacy server list ping.
Enums§
- The result of the Broadcast To Lan callback.
- Describes how new connections to the server are handled.
- The result of the Server List Legacy Ping callback.
- The payload of the legacy server list ping.
- The result of the Server List Ping callback.
Traits§
- This trait uses
async_trait
.
Type Aliases§
- A callback function called when the associated client is dropped. See
NetworkCallbacks::login
for more information.