Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
Ice::CloseCallback Class Referenceabstract

An application can implement this interface to receive notifications when a connection closes. More...

#include <Ice/Ice.h>

Inheritance diagram for Ice::CloseCallback:
Collaboration diagram for Ice::CloseCallback:

Public Types

typedef CloseCallbackPtr PointerType

Public Member Functions

virtual void closed (const ConnectionPtr &con)=0
 This method is called by the connection when the connection is closed.
virtual ~CloseCallback ()
Public Member Functions inherited from Ice::LocalObject
virtual bool operator< (const LocalObject &) const
virtual bool operator== (const LocalObject &) const
Public Member Functions inherited from IceUtil::Shared
void __clearFlag (unsigned char flag)
virtual void __decRef ()
virtual int __getRef () const
bool __hasFlag (unsigned char flag)
virtual void __incRef ()
void __setFlag (unsigned char flag)
virtual void __setNoDelete (bool)
Sharedoperator= (const Shared &)
 Shared ()
 Shared (const Shared &)
virtual ~Shared ()

Additional Inherited Members

Static Public Attributes inherited from IceUtil::Shared
static const unsigned char NoDelete
Protected Attributes inherited from IceUtil::Shared
unsigned char _flags
IceUtilInternal::Atomic _ref

Detailed Description

An application can implement this interface to receive notifications when a connection closes.

See also
Connection::setCloseCallback

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~CloseCallback()

virtual Ice::CloseCallback::~CloseCallback ( )
virtual

Member Function Documentation

◆ closed()

virtual void Ice::CloseCallback::closed ( const ConnectionPtr & con)
pure virtual

This method is called by the connection when the connection is closed.

If the callback needs more information about the closure, it can call Connection#throwException.

Parameters
conThe connection that closed.

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