Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example DTLS COAP Server and Client

An example Constrained Application Protocol(CoAP) Server and client using rust-async-coap.

Usage

server

$ RUST_LOG=trace cargo +nightly run --bin coap-server

client

$ RUST_LOG=trace cargo +nightly run --bin coap-client

Considerations

Some things to consider here:

  • No clone exists for openssl::ssl::SslStream The only way this seemed to work well was to wrap it in an Arc with RwLock.
  • DTLS v1.2 has no session ID A session can only live for the duration of a request. Perhaps with DTLS v1.3 this will change as this proposal will introduce the concept of a session ID.

About

An example CoAP DTLS implementation with rust-async-coap and rust-openssl.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages