webrtc-rs / dtls

A pure Rust implementation of DTLS
https://webrtc.rs
Apache License 2.0
42 stars 23 forks source link

[DTLS] change Listener's accept API to return both Conn and remote Addr #7

Closed rainliu closed 3 years ago

rainliu commented 3 years ago

async fn accept(&self) -> Result<Arc<dyn Conn + Send + Sync>> => async fn accept(&self) -> Result<(Arc<dyn Conn + Send + Sync>, SocketAddr)>