Crate letmein_proto

Source
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.
ResourceId
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.
MsgNetSocket
NetSocket for sending and receiving a Message over TCP or UDP.
MsgUdpDispatcher
UdpDispatcher for sending and receiving a Message over UDP.