From 20b681b6e00d4c3e63e34464e14a2712e6cb6c77 Mon Sep 17 00:00:00 2001 From: Hoa Nguyen Date: Thu, 20 Aug 2020 18:09:52 -0700 Subject: [PATCH] base: Tag API methods in socket.hh Change-Id: Ifdbe1d9367df602e45fa3d39c91de9e0f8f1d87e Signed-off-by: Hoa Nguyen Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33078 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/base/socket.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/base/socket.hh b/src/base/socket.hh index 74a379b08..4b426746f 100644 --- a/src/base/socket.hh +++ b/src/base/socket.hh @@ -32,6 +32,10 @@ class ListenSocket { protected: + /** + * The following variables are only used by socket unit tests: + * listeningDisabled, anyListening, bindToLoopback. + */ static bool listeningDisabled; static bool anyListening; @@ -54,14 +58,20 @@ class ListenSocket public: + /** + * @ingroup api_socket + * @{ + */ ListenSocket(); virtual ~ListenSocket(); virtual int accept(bool nodelay = false); + virtual bool listen(int port, bool reuse = true); int getfd() const { return fd; } bool islistening() const { return listening; } + /** @} */ // end of api_socket }; #endif //__SOCKET_HH__ -- 2.30.2