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

Public Member Functions

 Socket ()
 
 ~Socket ()
 
bool is_busy () const
 
void set_busy (bool busy)
 
virtual bool is_connected () const =0
 
virtual Descriptor get_descriptor () const =0
 
virtual bool accept ()=0
 
virtual const AStringget_from_address () const
 
virtual const AStringget_to_address () const
 
virtual bool accept_dispatch (const PTCPIPListenerBucket &listener)
 
virtual void set (PTCPIPListenerBucket listener)
 
virtual PTCPIPListenerBucket get_listener ()
 
virtual int get_port () const
 
virtual long send_receive (CommBuffer &, CommBuffer &)
 
virtual bool is_acceptor () const
 
virtual void close ()=0
 
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

Socket::Socket ( )
Socket::~Socket ( )

Member Function Documentation

virtual bool Socket::accept ( )
pure virtual

Implemented in SocketConnection, and SocketAcceptor.

virtual bool Socket::accept_dispatch ( const PTCPIPListenerBucket listener)
inlinevirtual

Reimplemented in SocketServer, and SocketAcceptor.

virtual void Socket::close ( )
pure virtual

Implemented in SocketConnection, and SocketAcceptor.

virtual Descriptor Socket::get_descriptor ( ) const
pure virtual

Implemented in SocketConnection, and SocketAcceptor.

virtual const AString& Socket::get_from_address ( ) const
inlinevirtual

Reimplemented in SocketConnection, and SocketAcceptor.

virtual PTCPIPListenerBucket Socket::get_listener ( )
inlinevirtual

Reimplemented in SocketServer, and SocketAcceptor.

virtual int Socket::get_port ( ) const
inlinevirtual

Reimplemented in SocketAcceptor.

virtual const AString& Socket::get_to_address ( ) const
inlinevirtual

Reimplemented in SocketConnection.

virtual bool Socket::is_acceptor ( ) const
inlinevirtual

Reimplemented in SocketAcceptor.

bool Socket::is_busy ( ) const
inline
virtual bool Socket::is_connected ( ) const
pure virtual
void Socket::run ( )
inlinevirtual

Run method to be implemented in derived class

Reimplemented from commore::Action.

virtual long Socket::send_receive ( CommBuffer ,
CommBuffer  
)
inlinevirtual

Reimplemented in SocketClient.

virtual void Socket::set ( PTCPIPListenerBucket  listener)
inlinevirtual

Reimplemented in SocketServer, and SocketAcceptor.

void Socket::set_busy ( bool  busy)
inline

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