From: Hoa Nguyen Date: Fri, 21 Aug 2020 01:09:52 +0000 (-0700) Subject: base: Tag API methods in socket.hh X-Git-Tag: v20.1.0.0~93 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20b681b6e00d4c3e63e34464e14a2712e6cb6c77;p=gem5.git 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 --- 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__