#stream #udp #dtls #tokio

udp-stream

Implementation of UdpSocket same as TcpStream

1 unstable release

0.0.3 Jul 15, 2022
0.0.2 Jun 15, 2022
0.0.1 Jan 8, 2022
0.0.0-alpha.3 Nov 30, 2019

#3 in #dtls

30 downloads per month

MIT license

12KB
230 lines

udp-stream

crates.io

Virtual UDP Stream implementation like Tokio TCP Stream based on Tokio.

Notes

  • It provides an easy interface to deal with DTLS and UDP sockets. Please check Examples folder. Need help for documentation and test. PRs are welcome
  • Since UDP is a connection-less protocol, handling exceptions or sessions on this library is impossible. You should implement end connection roles methods; for example, we used a timeout to handle de-activated sessions in echo examples.

Dependencies

~2.2–6MB
~92K SLoC