Skip to main content

Module network

Module network 

Source
Expand description

Network message types for Proof Engine, with in-memory stand-ins.

Nothing in this module opens a socket: the “clients” here queue and inspect messages in memory, which is useful for tests and replays. For real HTTP and WebSocket I/O use crate::networking with the http / websocket features. Contents:

  • HTTP request builder (GET/POST/PUT/DELETE)
  • WebSocket message protocol
  • Leaderboard submission and retrieval
  • Cloud save serialization
  • Lobby system messages
  • Rollback netcode data structures

Structs§

CloudSave
HttpRequest
HttpResponse
Leaderboard
LeaderboardEntry
Lobby
LobbyPlayer
NetInput
Input for one player at a given frame.
RollbackState
Rollback netcode state: stores a history of inputs for re-simulation.
WebSocket
Mock WebSocket client with a pending message queue.

Enums§

HttpMethod
LobbyState
WsMessage
WsState