gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ListenSocketUnixAbstract Class Reference

#include <socket.hh>

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

Public Member Functions

 ListenSocketUnixAbstract (const std::string &_name, const std::string &_path)
 
void output (std::ostream &os) const override
 
- Public Member Functions inherited from gem5::ListenSocketUnix
void listen () 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

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 path
 
- 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
 

Detailed Description

Definition at line 196 of file socket.hh.

Constructor & Destructor Documentation

◆ ListenSocketUnixAbstract()

gem5::ListenSocketUnixAbstract::ListenSocketUnixAbstract ( const std::string & _name,
const std::string & _path )

Definition at line 386 of file socket.cc.

References gem5::ListenSocketUnix::checkPathLength(), and path.

Member Function Documentation

◆ output()

void gem5::ListenSocketUnixAbstract::output ( std::ostream & os) const
overridevirtual

Implements gem5::ListenSocket.

Definition at line 394 of file socket.cc.

References gem5::X86ISA::os, and path.

◆ prepSockaddrUn()

size_t gem5::ListenSocketUnixAbstract::prepSockaddrUn ( sockaddr_un & addr) const
overrideprotectedvirtual

Implements gem5::ListenSocketUnix.

Definition at line 378 of file socket.cc.

References gem5::X86ISA::addr, and path.

Member Data Documentation

◆ path

std::string gem5::ListenSocketUnixAbstract::path
protected

Definition at line 199 of file socket.hh.

Referenced by ListenSocketUnixAbstract(), output(), and prepSockaddrUn().


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