gem5
v21.2.1.0
|
#include <socket.hh>
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 |
Static Private Member Functions | |
static int | socketCloexec (int domain, int type, int protocol) |
static int | acceptCloexec (int sockfd, struct sockaddr *addr, socklen_t *addrlen) |
|
staticprivate |
|
static |
Definition at line 71 of file socket.cc.
References listeningDisabled.
Referenced by gem5::EtherTapStub::EtherTapStub(), gem5::Terminal::listen(), gem5::BaseRemoteGDB::listen(), gem5::VncServer::listen(), gem5::Trace::NativeTrace::NativeTrace(), gem5::pybind_init_core(), and TEST().
|
staticprotected |
Definition at line 55 of file socket.cc.
References anyListening, bindToLoopback, and listeningDisabled.
|
static |
Definition at line 63 of file socket.cc.
References anyListening, listeningDisabled, and panic.
Referenced by gem5::pybind_init_core(), and TEST().
|
static |
Definition at line 77 of file socket.cc.
References anyListening, bindToLoopback, and panic.
Referenced by gem5::pybind_init_core().
|
staticprivate |
Definition at line 87 of file socket.cc.
References gem5::ArmISA::domain, and gem5::X86ISA::type.
Referenced by listen().
|
staticprotected |
Definition at line 46 of file socket.hh.
Referenced by cleanup(), disableAll(), listen(), and loopbackOnly().
|
staticprotected |
Definition at line 48 of file socket.hh.
Referenced by cleanup(), listen(), and loopbackOnly().
|
protected |
|
protected |
Definition at line 57 of file socket.hh.
Referenced by islistening(), and listen().
|
staticprotected |
The following variables are only used by socket unit tests: listeningDisabled, anyListening, bindToLoopback.
Definition at line 45 of file socket.hh.
Referenced by allDisabled(), cleanup(), and disableAll().