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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user