commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SocketAcceptor Class Reference
+ Inheritance diagram for SocketAcceptor:

Public Member Functions

 SocketAcceptor (const AString &address)
 
 ~SocketAcceptor ()
 
bool is_connected () const
 
Descriptor get_descriptor () const
 
bool accept ()
 
bool accept_dispatch (const PTCPIPListenerBucket &listener)
 
const AStringget_from_address () const
 
void set (PTCPIPListenerBucket listener)
 
PTCPIPListenerBucket get_listener ()
 
int get_port () const
 
void close ()
 
bool is_acceptor () const
 
- Public Member Functions inherited from Socket
 Socket ()
 
 ~Socket ()
 
bool is_busy () const
 
void set_busy (bool busy)
 
virtual const AStringget_to_address () const
 
virtual long send_receive (CommBuffer &, CommBuffer &)
 
void run ()
 
- Public Member Functions inherited from commore::Action
 Action ()
 
virtual ~Action ()
 
void submit (Processor &processor)
 
void stop (Processor &processor, bool wait=true)
 
void abort (Processor &processor, bool wait=true)
 
bool is_to_stop ()
 
bool is_to_abort ()
 
bool is_running ()
 
bool is_stopped ()
 
int wait (Processor &processor, const int timeout_ms=0)
 
void reset ()
 
commore::CriticalSectionget_cs ()
 
- Public Member Functions inherited from commore::RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void attach ()
 
virtual void release ()
 
virtual void nested_attach ()
 
virtual void nested_release ()
 
virtual void interface_release ()
 
virtual void Run ()
 

Additional Inherited Members

- Static Public Member Functions inherited from commore::RefObject
static AutoRefBase auto_create ()
 
static AutoRefBase auto_create (const AChar *s)
 
static AutoRefBase create ()
 
static AutoRefBase create (const AChar *s)
 
static AutoRefBase bind ()
 
static AutoRefBase bind (const AChar *s)
 
static const ACharfactory_name ()
 

Constructor & Destructor Documentation

SocketAcceptor::SocketAcceptor ( const AString address)
SocketAcceptor::~SocketAcceptor ( )

Member Function Documentation

bool SocketAcceptor::accept ( )
virtual

Implements Socket.

bool SocketAcceptor::accept_dispatch ( const PTCPIPListenerBucket listener)
virtual

Reimplemented from Socket.

void SocketAcceptor::close ( )
virtual

Implements Socket.

Descriptor SocketAcceptor::get_descriptor ( ) const
virtual

Implements Socket.

const AString& SocketAcceptor::get_from_address ( ) const
inlinevirtual

Reimplemented from Socket.

PTCPIPListenerBucket SocketAcceptor::get_listener ( )
inlinevirtual

Reimplemented from Socket.

int SocketAcceptor::get_port ( ) const
inlinevirtual

Reimplemented from Socket.

bool SocketAcceptor::is_acceptor ( ) const
inlinevirtual

Reimplemented from Socket.

bool SocketAcceptor::is_connected ( ) const
inlinevirtual

Implements Socket.

void SocketAcceptor::set ( PTCPIPListenerBucket  listener)
inlinevirtual

Reimplemented from Socket.


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