1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 01:44:58 +00:00

TCP: Start working on auto-closing connections when we get FIN.

This commit is contained in:
Andreas Kling 2019-03-14 15:23:32 +01:00
parent 4629272135
commit 25e521f510
6 changed files with 35 additions and 6 deletions

View file

@ -186,3 +186,8 @@ void TCPSocket::protocol_allocate_source_port()
}
}
}
bool TCPSocket::protocol_is_disconnected() const
{
return m_state == State::Disconnecting || m_state == State::Disconnected;
}