gem5  v20.1.0.0
Static Public Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ListenSocket Class Reference

#include <socket.hh>

Inheritance diagram for ListenSocket:
MockListenSocket

Public Member Functions

 ListenSocket ()
 
virtual ~ListenSocket ()
 
virtual int accept (bool nodelay=false)
 
virtual bool listen (int port, bool reuse=true)
 
int getfd () const
 
bool islistening () const
 

Static Public Member Functions

static void disableAll ()
 
static bool allDisabled ()
 
static void loopbackOnly ()
 

Static Protected Member Functions

static void cleanup ()
 

Protected Attributes

bool listening
 
int fd
 

Static Protected Attributes

static bool listeningDisabled = false
 The following variables are only used by socket unit tests: listeningDisabled, anyListening, bindToLoopback. More...
 
static bool anyListening = false
 
static bool bindToLoopback = false
 

Detailed Description

Definition at line 32 of file socket.hh.

Member Function Documentation

◆ allDisabled()

bool ListenSocket::allDisabled ( )
static

◆ cleanup()

void ListenSocket::cleanup ( )
staticprotected

Definition at line 54 of file socket.cc.

Referenced by MockListenSocket::~MockListenSocket().

◆ disableAll()

void ListenSocket::disableAll ( )
static

Definition at line 62 of file socket.cc.

References panic.

Referenced by pybind_init_core(), and TEST().

◆ loopbackOnly()

void ListenSocket::loopbackOnly ( )
static

Definition at line 76 of file socket.cc.

References panic.

Referenced by pybind_init_core().

Member Data Documentation

◆ anyListening

bool ListenSocket::anyListening = false
staticprotected

Definition at line 40 of file socket.hh.

Referenced by listen().

◆ bindToLoopback

bool ListenSocket::bindToLoopback = false
staticprotected

Definition at line 42 of file socket.hh.

Referenced by listen().

◆ fd

int ListenSocket::fd
protected

Definition at line 52 of file socket.hh.

Referenced by accept(), getfd(), listen(), and ~ListenSocket().

◆ listening

bool ListenSocket::listening
protected

Definition at line 51 of file socket.hh.

Referenced by islistening(), and listen().

◆ listeningDisabled

bool ListenSocket::listeningDisabled = false
staticprotected

The following variables are only used by socket unit tests: listeningDisabled, anyListening, bindToLoopback.

Definition at line 39 of file socket.hh.


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:02:26 for gem5 by doxygen 1.8.17