kcp
kcp copied to clipboard
Async write for Kcp Struct
Currently Kcp struct requires Write which makes integration with DTLS a little hard (since send_to
is async rather than sync) so what can we do to deal with this situation?
https://github.com/zonyitoo/tokio-tfo
https://github.com/Matrix-Zhang/tokio_kcp
https://github.com/Matrix-Zhang/kcp/blob/58e863fcbdf4cdd0df9e9c378a864dd4d0c8f58f/src/kcp.rs#L155-L185
KcpOutput
now supports AsyncWrite
with feature = "tokio"
enabled.