40 releases
0.0.123 | May 9, 2024 |
---|---|
0.0.123-beta | Apr 19, 2024 |
0.0.121 | Jan 23, 2024 |
0.0.119 | Dec 16, 2023 |
0.0.1 | Jun 1, 2019 |
#7 in #wish
9,304 downloads per month
Used in 3 crates
6.5MB
105K
SLoC
A socket handling library for those running in Tokio environments who wish to use
rust-lightning with native TcpStream
s.
Designed to be as simple as possible, the high-level usage is almost as simple as "hand over a
TcpStream
and a reference to a PeerManager
and the rest is handled".
The PeerManager
, due to the fire-and-forget nature of this logic, must be a reference,
(e.g. an [Arc
]) and must use the SocketDescriptor
provided here as the PeerManager
's
SocketDescriptor
implementation.
Three methods are exposed to register a new connection for handling in tokio::spawn
calls;
see their individual docs for details.
Dependencies
~9–18MB
~177K SLoC