|
gem5 [DEVELOP-FOR-25.0]
|
#include <socket.hh>
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 |
| virtual | ~ListenSocket () |
| virtual int | accept () |
| int | getfd () const |
| bool | islistening () const |
Public Member Functions inherited from gem5::Named | |
| Named (std::string_view 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 |
| gem5::ListenSocketUnixAbstract::ListenSocketUnixAbstract | ( | const std::string & | _name, |
| const std::string & | _path ) |
Definition at line 386 of file socket.cc.
References gem5::Named::_name, gem5::ListenSocketUnix::checkPathLength(), gem5::ListenSocketUnix::ListenSocketUnix(), and path.
|
overridevirtual |
Implements gem5::ListenSocket.
Definition at line 394 of file socket.cc.
References gem5::X86ISA::os, and path.
|
overrideprotectedvirtual |
Implements gem5::ListenSocketUnix.
Definition at line 378 of file socket.cc.
References gem5::X86ISA::addr, and path.
|
protected |
Definition at line 199 of file socket.hh.
Referenced by ListenSocketUnixAbstract(), output(), and prepSockaddrUn().