This commit is contained in:
michael-bailey 2024-04-18 13:11:50 +01:00
parent 9aba1ff7a3
commit f284fdd6e3
1 changed files with 5 additions and 2 deletions

View File

@ -17,12 +17,15 @@ use tokio::net::TcpStream;
pub struct NetworkConnection {
stream: TcpStream,
addr: SocketAddr,
_addr: SocketAddr,
}
impl NetworkConnection {
pub fn new(stream: TcpStream, addr: SocketAddr) -> Self {
Self { stream, addr }
Self {
stream,
_addr: addr,
}
}
pub async fn get_request(&mut self) -> io::Result<ServerRequest> {