single_hand_shake_protocol_monorepo library

Classes

AddressUtility
Utility functions for address formatting
CallbackMap<T>
Generic callback map for managing callbacks by string keys Similar to TypeScript's CallbackMap
ConcatUtility
Utility functions for concatenating data
HandshakeIP
HandshakeOwnership
HandshakeTime
MessageCallbackMap
A specialized callback map for handling messages from remote endpoints Supports both IPv4 and IPv6 addresses Key format:
RawShspSocket
Hoping that in a future RawDatagramSocket (or similar) will become a real class
Shsp
Implementation of IShsp interface Manages SHSP peer with signal and socket
ShspInstance
SHSP Instance implementation Handles protocol messages (handshake, closing, closed, keep-alive)
ShspPeer
SHSP Peer implementation
ShspSocket
SHSP Socket implementation wrapping RawDatagramSocket

Typedefs

Callback<T> = void Function(T args)
Generic type for callbacks
InputFactoryHandshakeTime = ({int? handshakeDuration, int? handshakeTimeframe, int? whenLastHandshake})
InputHandshakeIP = ({PeerInfo? localIPv4, PeerInfo? localIPv6, PeerInfo? publicIPv4, PeerInfo? publicIPv6})
InputHandshakeOwnership = ({String signedNonce})
InputHandshakeTime = ({DateTime endHandshakeTime, int handshakeDuration, int handshakeTimeframe, DateTime startHandshakeTime})