gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ListenSocket Class Reference

#include <socket.hh>

Public Member Functions

 ListenSocket ()
 
virtual ~ListenSocket ()
 
virtual int accept (bool nodelay=false)
 
virtual bool listen (int port, bool reuse=true)
 
int getfd () const
 
bool islistening () const
 

Static Public Member Functions

static void disableAll ()
 
static bool allDisabled ()
 
static void loopbackOnly ()
 

Protected Attributes

bool listening
 
int fd
 

Static Protected Attributes

static bool listeningDisabled = false
 
static bool anyListening = false
 
static bool bindToLoopback = false
 

Detailed Description

Definition at line 34 of file socket.hh.

Constructor & Destructor Documentation

ListenSocket::ListenSocket ( )

Definition at line 78 of file socket.cc.

ListenSocket::~ListenSocket ( )
virtual

Definition at line 82 of file socket.cc.

References fd.

Member Function Documentation

int ListenSocket::accept ( bool  nodelay = false)
virtual
bool ListenSocket::allDisabled ( )
static
void ListenSocket::disableAll ( )
static

Definition at line 53 of file socket.cc.

References panic.

Referenced by pybind_init_core().

int ListenSocket::getfd ( ) const
inline

Definition at line 59 of file socket.hh.

References fd.

Referenced by Terminal::listen(), VncServer::listen(), TapListener::listen(), and GDBListener::listen().

bool ListenSocket::islistening ( ) const
inline

Definition at line 60 of file socket.hh.

References listening.

Referenced by Terminal::accept(), VncServer::accept(), TapListener::accept(), and GDBListener::accept().

bool ListenSocket::listen ( int  port,
bool  reuse = true 
)
virtual
void ListenSocket::loopbackOnly ( )
static

Definition at line 67 of file socket.cc.

References panic.

Referenced by pybind_init_core().

Member Data Documentation

bool ListenSocket::anyListening = false
staticprotected

Definition at line 38 of file socket.hh.

Referenced by listen().

bool ListenSocket::bindToLoopback = false
staticprotected

Definition at line 40 of file socket.hh.

Referenced by listen().

int ListenSocket::fd
protected

Definition at line 50 of file socket.hh.

Referenced by accept(), getfd(), listen(), and ~ListenSocket().

bool ListenSocket::listening
protected

Definition at line 49 of file socket.hh.

Referenced by islistening(), and listen().

bool ListenSocket::listeningDisabled = false
staticprotected

Definition at line 37 of file socket.hh.


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

Generated on Fri Jun 9 2017 13:04:14 for gem5 by doxygen 1.8.6