gem5 v24.0.0.0
|
Public Member Functions | |
MockListenSocket (int port) | |
~MockListenSocket () | |
Public Member Functions inherited from gem5::ListenSocketInet | |
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 |
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) |
Protected Member Functions inherited from gem5::ListenSocketInet | |
virtual bool | listen (int port) |
Protected Member Functions inherited from gem5::ListenSocket | |
void | setListening () |
ListenSocket (const std::string &_name) | |
Static Protected Member Functions inherited from gem5::ListenSocket | |
static void | cleanup () |
Protected Attributes inherited from gem5::ListenSocketInet | |
int | _port |
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 |
Definition at line 48 of file socket.test.cc.
|
inline |
Definition at line 51 of file socket.test.cc.
|
inline |
Definition at line 57 of file socket.test.cc.
References gem5::ListenSocket::cleanup().