1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

LibCore: Remove CSocket's bind() and listen().

We're going to be using dedicated server socket classes instead.
This was only implemented for CLocalSocket, and clients have been switched
over to using CLocalServer.
This commit is contained in:
Andreas Kling 2019-07-27 10:57:30 +02:00
parent fe45f5a6d2
commit e7957db173
6 changed files with 0 additions and 28 deletions

View file

@ -131,13 +131,6 @@ bool CSocket::send(const ByteBuffer& data)
return true;
}
bool CSocket::listen()
{
int rc = ::listen(fd(), 5);
set_error(errno);
return rc == 0;
}
void CSocket::did_update_fd(int fd)
{
if (fd < 0) {