gem5 v24.0.0.0
Loading...
Searching...
No Matches
MockListenSocket Class Reference
Inheritance diagram for MockListenSocket:
gem5::ListenSocketInet gem5::ListenSocket gem5::Named

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
 

Detailed Description

Definition at line 48 of file socket.test.cc.

Constructor & Destructor Documentation

◆ MockListenSocket()

MockListenSocket::MockListenSocket ( int port)
inline

Definition at line 51 of file socket.test.cc.

◆ ~MockListenSocket()

MockListenSocket::~MockListenSocket ( )
inline

Definition at line 57 of file socket.test.cc.

References gem5::ListenSocket::cleanup().


The documentation for this class was generated from the following file:

Generated on Tue Jun 18 2024 16:24:09 for gem5 by doxygen 1.11.0