- a simple example of a
libp2p
connection
- updated
quinn
andquinn-proto
to0.11
- updated the dev dependencies
- per-connection datagram stats are now collected
once_cell
is no longer a dependency- due to the use of
std::sync::OnceLock
, the MSRV is increased to 1.70
- updated
quinn
andquinn-proto
to0.10
- updated
tokio
to1.24
- updated the dev dependencies
Quickie::disconnect
now waits until the connection is fully closed usingquinn::Connection::closed
quinn::StreamId
is re-exported
Quickie::disconnect
is nowasync
- updated
quinn
andquinn-proto
to0.9
Quickie::num_connections
: returns the number of live connectionsQuickie::close_stream
: closes the specified streamQuickie::get_stream_ids
: returns the list of stream IDs associated with a connectionQuickie::get_stream_stats
: returns the list of active streams associated with a connectionStreamStats
: a set of simple statistics related to a stream
Quickie::open_bi
now only returns a single stream IDQuickie::disconnect
is no longerasync
(it wasn't used)- renamed
Quickie::unicast
to::send_msg
(to be more aligned with::send_datagram
)
- the inbound stream/datagram handlers now close when there's a connection error
- the bidirectional stream's send task's handle is no longer accidentally overwritten
Quickie::send_datagram
: the counterpart to quinn::Connection::send_datagramQuickie::rebind
: the counterpart to quinn::Endpoint::rebindQuickie::local_addr
node::Config
: allows nodes to be started in client or server modeNode::new
: creates a newNode
with the givenConfig
Quickie::listen
became::start
, and it only has aSocketAddr
param now
quinn
'sStreamId
s are now correctly distinguished (version0.1
wrongly assumed their numeric indices are unique per connection)
impl Default for Node
: no longer possible due to it containing theConfig
nowStreamIdx
: not needed anymore
- the initial implementation