gem5 v24.0.0.0
|
#include <socket.hh>
Public Member Functions | |
void | listen () override |
Public Member Functions inherited from gem5::ListenSocket | |
virtual | ~ListenSocket () |
virtual int | accept () |
virtual void | output (std::ostream &os) const =0 |
int | getfd () const |
bool | islistening () const |
Public Member Functions inherited from gem5::Named | |
Named (const std::string &name_) | |
virtual | ~Named ()=default |
virtual std::string | name () const |
Protected Member Functions | |
virtual size_t | prepSockaddrUn (sockaddr_un &addr) const =0 |
void | checkPathLength (const std::string &original, size_t max_len) |
ListenSocketUnix (const std::string &_name) | |
Protected Member Functions inherited from gem5::ListenSocket | |
void | setListening () |
ListenSocket (const std::string &_name) | |
Additional Inherited Members | |
Static Public Member Functions inherited from gem5::ListenSocket | |
static void | disableAll () |
static bool | allDisabled () |
static void | loopbackOnly () |
static int | socketCloexec (int domain, int type, int protocol) |
static int | acceptCloexec (int sockfd, struct sockaddr *addr, socklen_t *addrlen) |
Static Protected Member Functions inherited from gem5::ListenSocket | |
static void | cleanup () |
Protected Attributes inherited from gem5::ListenSocket | |
bool | listening = false |
int | fd = -1 |
Static Protected Attributes inherited from gem5::ListenSocket | |
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 |
|
inlineprotected |
|
protected |
Definition at line 268 of file socket.cc.
References fatal_if.
Referenced by gem5::ListenSocketUnixAbstract::ListenSocketUnixAbstract(), and gem5::ListenSocketUnixFile::ListenSocketUnixFile().
|
overridevirtual |
Implements gem5::ListenSocket.
Reimplemented in gem5::ListenSocketUnixFile.
Definition at line 276 of file socket.cc.
References gem5::ccprintf(), fatal_if, gem5::ListenSocket::fd, listen(), gem5::ListenSocket::listening, gem5::Named::name(), panic_if, prepSockaddrUn(), gem5::ListenSocket::setListening(), and gem5::ListenSocket::socketCloexec().
Referenced by listen(), and gem5::ListenSocketUnixFile::listen().
|
protectedpure virtual |
Implemented in gem5::ListenSocketUnixAbstract, and gem5::ListenSocketUnixFile.
Referenced by listen().