Basic ugly server working

This commit is contained in:
lorenz.stechauner committed 2021-05-14 21:17:38 +02:00
1 parent 0b76ba2069
commit bb12b57bf1
5 files changed
+106 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
use std::net::TcpStream;
use openssl::ssl::SslStream;
pub enum Stream {
Tcp(TcpStream),
Ssl(SslStream<TcpStream>),
}
impl Stream {}
pub fn connection_handler(client: Stream) {
}
fn request_handler(client: Stream) {
}