gem5 v24.0.0.0
|
#include <socket.hh>
Static Public Member Functions | |
static void | disableAll () |
static bool | allDisabled () |
static void | loopbackOnly () |
Protected Member Functions | |
void | setListening () |
ListenSocket (const std::string &_name) | |
Static Protected Member Functions | |
static void | cleanup () |
Protected Attributes | |
bool | listening = false |
int | fd = -1 |
Static Protected Attributes | |
static bool | listeningDisabled = false |
The following variables are only used by socket unit tests: listeningDisabled, anyListening, bindToLoopback. | |
static bool | anyListening = false |
static bool | bindToLoopback = false |
static int | socketCloexec (int domain, int type, int protocol) |
static int | acceptCloexec (int sockfd, struct sockaddr *addr, socklen_t *addrlen) |
virtual | ~ListenSocket () |
virtual int | accept () |
virtual void | listen ()=0 |
virtual void | output (std::ostream &os) const =0 |
int | getfd () const |
bool | islistening () const |
Additional Inherited Members | |
Public Member Functions inherited from gem5::Named | |
Named (const std::string &name_) | |
virtual | ~Named ()=default |
virtual std::string | name () const |
|
protected |
|
virtual |
Reimplemented in gem5::ListenSocketInet.
Definition at line 140 of file socket.cc.
References acceptCloexec(), fd, gem5::Named::name(), and panic_if.
Referenced by gem5::ListenSocketInet::accept().
|
static |
|
static |
Definition at line 90 of file socket.cc.
References listeningDisabled.
Referenced by gem5::EtherTapStub::EtherTapStub(), gem5::BaseRemoteGDB::listen(), gem5::Terminal::listen(), gem5::VncServer::listen(), gem5::trace::NativeTrace::NativeTrace(), gem5::pybind_init_core(), TEST(), TEST(), and TEST().
|
staticprotected |
Definition at line 74 of file socket.cc.
References anyListening, bindToLoopback, and listeningDisabled.
Referenced by MockListenSocket::~MockListenSocket().
|
static |
Definition at line 82 of file socket.cc.
References anyListening, listeningDisabled, and panic.
Referenced by gem5::pybind_init_core(), and TEST().
|
inline |
|
inline |
|
pure virtual |
Implemented in gem5::ListenSocketInet, gem5::ListenSocketUnix, and gem5::ListenSocketUnixFile.
|
static |
Definition at line 96 of file socket.cc.
References anyListening, bindToLoopback, and panic.
Referenced by gem5::pybind_init_core().
|
pure virtual |
Implemented in gem5::ListenSocketInet, gem5::ListenSocketUnixAbstract, and gem5::ListenSocketUnixFile.
Referenced by gem5::operator<<().
|
inlineprotected |
Definition at line 69 of file socket.hh.
References anyListening, and listening.
Referenced by gem5::ListenSocketInet::listen(), and gem5::ListenSocketUnix::listen().
|
static |
Definition at line 106 of file socket.cc.
References gem5::ArmISA::domain, and gem5::X86ISA::type.
Referenced by gem5::ListenSocketInet::listen(), and gem5::ListenSocketUnix::listen().
|
staticprotected |
Definition at line 54 of file socket.hh.
Referenced by cleanup(), disableAll(), loopbackOnly(), and setListening().
|
staticprotected |
Definition at line 56 of file socket.hh.
Referenced by cleanup(), gem5::ListenSocketInet::listen(), and loopbackOnly().
|
protected |
Definition at line 66 of file socket.hh.
Referenced by accept(), getfd(), gem5::ListenSocketInet::listen(), gem5::ListenSocketUnix::listen(), and ~ListenSocket().
|
protected |
Definition at line 65 of file socket.hh.
Referenced by islistening(), gem5::ListenSocketInet::listen(), gem5::ListenSocketUnix::listen(), and setListening().
|
staticprotected |
The following variables are only used by socket unit tests: listeningDisabled, anyListening, bindToLoopback.
Definition at line 53 of file socket.hh.
Referenced by allDisabled(), cleanup(), and disableAll().