summaryrefslogtreecommitdiff
path: root/src/base/socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/socket.cc')
-rw-r--r--src/base/socket.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/base/socket.cc b/src/base/socket.cc
index ece4a6ac4..b188ac1f9 100644
--- a/src/base/socket.cc
+++ b/src/base/socket.cc
@@ -1,4 +1,7 @@
/*
+ * Copyright (c) 2020 The Regents of the University of California
+ * All rights reserved
+ *
* Copyright (c) 2002-2005 The Regents of The University of Michigan
* All rights reserved.
*
@@ -26,6 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Authors: Nathan Binkert
+ * Bobby R. Bruce
*/
#include "base/socket.hh"
@@ -50,6 +54,14 @@ bool ListenSocket::anyListening = false;
bool ListenSocket::bindToLoopback = false;
void
+ListenSocket::cleanup()
+{
+ listeningDisabled = false;
+ anyListening = false;
+ bindToLoopback = false;
+}
+
+void
ListenSocket::disableAll()
{
if (anyListening)