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§
- Erased
Network Callbacks - A type-erased wrapper around an
NetworkCallbacks
object. - Handshake
Data - Basic information about a client, provided at the beginning of the connection
- Network
Plugin - Network
Settings - Settings for
NetworkPlugin
. Note that mutations to these fields have no effect after the plugin is built. - NewClient
Info - Contains information about a new client joining the server.
- Player
Sample Entry - Represents an individual entry in the player sample.
- Server
List Legacy Ping Response - Response data of the legacy server list ping.
- Shared
Network State
Enums§
- Broadcast
ToLan - The result of the Broadcast To Lan callback.
- Connection
Mode - Describes how new connections to the server are handled.
- Server
List Legacy Ping - The result of the Server List Legacy Ping callback.
- Server
List Legacy Ping Payload - The payload of the legacy server list ping.
- Server
List Ping - The result of the Server List Ping callback.
Traits§
- Network
Callbacks - This trait uses
async_trait
.
Type Aliases§
- Cleanup
Fn - A callback function called when the associated client is dropped. See
NetworkCallbacks::login
for more information.