gem5 v24.0.0.0
|
#include <socket.hh>
Public Member Functions | |
ListenSocketInet (const std::string &_name, int port) | |
int | accept () override |
void | listen () override |
void | output (std::ostream &os) const override |
Public Member Functions inherited from gem5::ListenSocket | |
virtual | ~ListenSocket () |
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 bool | listen (int port) |
Protected Member Functions inherited from gem5::ListenSocket | |
void | setListening () |
ListenSocket (const std::string &_name) | |
Protected Attributes | |
int | _port |
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::ListenSocketInet::ListenSocketInet | ( | const std::string & | _name, |
int | port ) |
|
overridevirtual |
Reimplemented from gem5::ListenSocket.
Definition at line 182 of file socket.cc.
References gem5::ListenSocket::accept(), gem5::ArmISA::i, and warn_if.
Referenced by TEST().
|
overridevirtual |
Implements gem5::ListenSocket.
Definition at line 243 of file socket.cc.
References _port, gem5::ccprintf(), fatal_if, listen(), and gem5::Named::name().
|
protectedvirtual |
Definition at line 197 of file socket.cc.
References gem5::ListenSocket::bindToLoopback, gem5::ListenSocket::fd, gem5::htobe(), gem5::ArmISA::i, listen(), gem5::ListenSocket::listening, panic_if, gem5::ListenSocket::setListening(), and gem5::ListenSocket::socketCloexec().
|
overridevirtual |
Implements gem5::ListenSocket.
Definition at line 254 of file socket.cc.
References _port, and gem5::X86ISA::os.
|
protected |