1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 22:15:07 +00:00

Net: Put a bunch of socket debug logging behind FOO_DEBUG

Also remove an unused Socket::listen() implementation.
This commit is contained in:
Andreas Kling 2019-10-18 16:47:29 +02:00
parent ec65b8db2e
commit e08991319a
3 changed files with 10 additions and 11 deletions

View file

@ -43,17 +43,6 @@ void Socket::set_setup_state(SetupState new_setup_state)
m_setup_state = new_setup_state;
}
KResult Socket::listen(int backlog)
{
LOCKER(m_lock);
if (m_type != SOCK_STREAM)
return KResult(-EOPNOTSUPP);
m_backlog = backlog;
m_role = Role::Listener;
kprintf("Socket{%p} listening with backlog=%d\n", this, m_backlog);
return KSuccess;
}
RefPtr<Socket> Socket::accept()
{
LOCKER(m_lock);