-
What is the difference between Botan::TLS::Server, TLS::Client and boost::asio, boost::beast? Does botan implement its own network api? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not familiar with the Beast library so cannot comment there. With regards to TLS Botan does not implement the network layer. The It may clear things up to look at some of the command line utility implementations like tls_http_server which use asio to access the network layer. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the answer. |
Beta Was this translation helpful? Give feedback.
I'm not familiar with the Beast library so cannot comment there.
With regards to TLS Botan does not implement the network layer. The
TLS::Server
andTLS::Client
classes provide a wrapper around some other network API which you as the application developer must provide. This is done by implementing various functions inTLS::Callbacks
for exampletls_emit_data
is called when the TLS layer needs to send something to the network. At that point it is up to the application and it might well use something like asio to accomplish that.It may clear things up to look at some of the command line utility implementations like tls_http_server which use asio to access the network layer.