base,dev: Simplify the ListenSocket::accept method.

Remove the nodelay option which is always set to the same thing, and
simplify the logic of the method itself.

Change-Id: I78cd91f99cbaec9abddedbc7dcddc563daedb81f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69158
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
This commit is contained in:
Gabe Black
2023-03-18 06:28:16 -07:00
committed by Gabe Black
parent 79cfef2650
commit 2e1d24d048
6 changed files with 12 additions and 12 deletions

View File

@@ -104,7 +104,7 @@ class ListenSocket
ListenSocket();
virtual ~ListenSocket();
virtual int accept(bool nodelay = true);
virtual int accept();
virtual bool listen(int port, bool reuse = true);