gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ListenSocketUnix Class Referenceabstract

#include <socket.hh>

Inheritance diagram for gem5::ListenSocketUnix:
gem5::ListenSocket gem5::Named gem5::ListenSocketUnixAbstract gem5::ListenSocketUnixFile

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
 

Detailed Description

Definition at line 160 of file socket.hh.

Constructor & Destructor Documentation

◆ ListenSocketUnix()

gem5::ListenSocketUnix::ListenSocketUnix ( const std::string & _name)
inlineprotected

Definition at line 167 of file socket.hh.

Member Function Documentation

◆ checkPathLength()

void gem5::ListenSocketUnix::checkPathLength ( const std::string & original,
size_t max_len )
protected

◆ listen()

◆ prepSockaddrUn()

virtual size_t gem5::ListenSocketUnix::prepSockaddrUn ( sockaddr_un & addr) const
protectedpure virtual

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

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