gem5 v24.0.0.0
|
#include <socket.hh>
Public Member Functions | |
ListenSocketUnixFile (const std::string &_name, const std::string &_dir, const std::string &_fname) | |
~ListenSocketUnixFile () | |
void | listen () override |
void | output (std::ostream &os) const override |
Public Member Functions inherited from gem5::ListenSocket | |
virtual | ~ListenSocket () |
virtual int | accept () |
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 | |
bool | unlink () const |
size_t | prepSockaddrUn (sockaddr_un &addr) const override |
Protected Member Functions inherited from gem5::ListenSocketUnix | |
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) | |
Protected Attributes | |
std::string | dir |
std::string | resolvedDir |
std::string | fname |
Protected Attributes inherited from gem5::ListenSocket | |
bool | listening = false |
int | fd = -1 |
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 () |
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 |
gem5::ListenSocketUnixFile::ListenSocketUnixFile | ( | const std::string & | _name, |
const std::string & | _dir, | ||
const std::string & | _fname ) |
Definition at line 304 of file socket.cc.
References gem5::ListenSocketUnix::checkPathLength(), and fname.
gem5::ListenSocketUnixFile::~ListenSocketUnixFile | ( | ) |
Definition at line 311 of file socket.cc.
References gem5::ArmISA::fd, and unlink().
|
overridevirtual |
Reimplemented from gem5::ListenSocketUnix.
Definition at line 336 of file socket.cc.
References dir, gem5::ArmISA::ec, fatal_if, fname, gem5::ListenSocketUnix::listen(), gem5::Named::name(), panic_if, gem5::OutputDirectory::resolve(), resolvedDir, gem5::simout, unlink(), and warn_if.
|
overridevirtual |
Implements gem5::ListenSocket.
Definition at line 364 of file socket.cc.
References dir, fname, and gem5::X86ISA::os.
|
overrideprotectedvirtual |
Implements gem5::ListenSocketUnix.
Definition at line 328 of file socket.cc.
References gem5::X86ISA::addr, and fname.
|
protected |
Definition at line 321 of file socket.cc.
References fname, and resolvedDir.
Referenced by listen(), and ~ListenSocketUnixFile().
|
protected |
|
protected |
Definition at line 178 of file socket.hh.
Referenced by listen(), ListenSocketUnixFile(), output(), prepSockaddrUn(), and unlink().
|
protected |