Expand description
This crate implements the letmein
wire protocol.
Serializing messages to a raw byte stream and deserializing raw byte stream to a message is implemented here.
The letmein
authentication algorithm primitives are implemented here.
Structs§
- Message
- The message data type.
- Resource
Id - Identification number of a resource.
- UdpDispatcher
- Simple TX/RX dispatcher for UDP.
- UserId
- Identification number of a user (and a key).
Enums§
- NetSocket
- Socket abstraction for sending and receiving data over a TCP or UDP connection.
- Operation
- The operation the message shall perform.
Constants§
- MSG_
SIZE - letmeind message size, in bytes. All message types have the same size.
- PORT
- Default letmeind port number.
Functions§
- secure_
random - Generate a cryptographically secure random token.
Type Aliases§
- Auth
- Type of the authentication token.
- Key
- Type of the authentication key.
- MsgNet
Socket - NetSocket for sending and receiving a Message over TCP or UDP.
- MsgUdp
Dispatcher - UdpDispatcher for sending and receiving a Message over UDP.