WIP: aquatic_ws: continue work on simplifying network code

This commit is contained in:
Joakim Frostegård 2020-05-13 14:46:38 +02:00
parent 91590858b9
commit 05844e9645
3 changed files with 66 additions and 93 deletions

View file

@ -63,13 +63,16 @@ pub fn close_and_deregister_connection(
connection: &mut Connection,
){
match connection.stage {
ConnectionStage::Stream(ref mut stream) => {
ConnectionStage::TcpStream(ref mut stream) => {
/*
poll.registry()
.deregister(stream)
.unwrap();
*/
},
ConnectionStage::TlsStream(ref mut stream) => {
}
ConnectionStage::TlsMidHandshake(ref mut handshake) => {
/*
poll.registry()
@ -77,7 +80,7 @@ pub fn close_and_deregister_connection(
.unwrap();
*/
},
ConnectionStage::WsHandshake(ref mut handshake) => {
ConnectionStage::WsMidHandshake(ref mut handshake) => {
/*
poll.registry()
.deregister(handshake.get_mut().get_mut())