Expand description
Integrates the netcode authentication and encryption protocol with renet2’s reliability layer.
Includes built-in data transports.
Structs§
- Convenience wrapper for
ServerSocket. - A public connect token that the client receives to start connecting to the server. How the client receives ConnectToken is up to you, could be from a matchmaking system or from a call to a REST API as an example.
- Holds the endpoints of bi-directional channels used by in-memory sockets.
- Implementation of
ClientSocketfor clients of an in-memory channel server socket. - Implementation of
ServerSocketfor a server socket using in-memory channels. - Implementation of
ServerSocketforUdpSockets. - SHA-256 hash of a DER-encoded certificate.
- Config for setting up a
NetcodeServerTransport. - Configuration details for a socket associated with a netcode server.
- Implementation of
ServerSocketfor WebSocket servers. - Configuration for setting up a
WebSocketServer. - Implementation of
ServerSocketfor WebTransport servers. - Configuration for setting up a
WebTransportServer.
Enums§
- Configuration to establish a secure or unsecure connection with the server.
- The reason why a client is in error state
- Errors from the renetcode crate.
- Configuration to establish a secure or unsecure connection with the server.
- Represents a WebTransport server destination.
- Acceptor config for WebSocket connections.
Constants§
- The number of bytes in a private key;
- The number of bytes that an user data can contain in the ConnectToken.
Traits§
- Unreliable data source for use in
NetcodeClientTransport. - Unreliable data source for use in
NetcodeServerTransport.
Functions§
- Generate a buffer with random bytes using randomness from the operating system.
- Generates a self-signed certificate for use in
WebTransportConfig. - Generates a self-signed certificate for use in
WebTransportConfig. - Loads a certificate and private key from the file system.
- Gets a
ServerCertHashfrom aCertificateDer. - Converts a client index into a
SocketAddrfor in-memory client sockets. - Produces a
SocketAddrfor in-memory server sockets. - Generates in-memory sockets.