reSIProcate/DialogUsageManager  9694
Public Member Functions | Public Attributes
ClientHandler Class Reference
Inheritance diagram for ClientHandler:
Inheritance graph
[legend]
Collaboration diagram for ClientHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ClientHandler ()
virtual void onSuccess (ClientRegistrationHandle h, const SipMessage &response)
 Called when registraion succeeds or each time it is sucessfully refreshed.
virtual void onRemoved (ClientRegistrationHandle, const SipMessage &response)
virtual void onFailure (ClientRegistrationHandle, const SipMessage &response)
 Called if registration fails, usage will be destroyed (unless a Registration retry interval is enabled in the Profile)
virtual int onRequestRetry (ClientRegistrationHandle, int retrySeconds, const SipMessage &response)
 call on Retry-After failure.

Public Attributes

bool done

Detailed Description

Definition at line 29 of file basicRegister.cxx.


Constructor & Destructor Documentation

ClientHandler::ClientHandler ( ) [inline]

Definition at line 32 of file basicRegister.cxx.

: done(false) {}

Member Function Documentation

virtual void ClientHandler::onFailure ( ClientRegistrationHandle  ,
const SipMessage response 
) [inline, virtual]

Called if registration fails, usage will be destroyed (unless a Registration retry interval is enabled in the Profile)

Implements resip::ClientRegistrationHandler.

Definition at line 54 of file basicRegister.cxx.

References InfoLog.

      {
         InfoLog ( << "ClientHandler::onFailure: " << response );
      }
virtual void ClientHandler::onRemoved ( ClientRegistrationHandle  ,
const SipMessage response 
) [inline, virtual]

Implements resip::ClientRegistrationHandler.

Definition at line 48 of file basicRegister.cxx.

References InfoLog.

      {
         InfoLog ( << "ClientHandler::onRemoved ");
         done = true;
      }
virtual int ClientHandler::onRequestRetry ( ClientRegistrationHandle  ,
int  retrySeconds,
const SipMessage response 
) [inline, virtual]

call on Retry-After failure.

return values: -1 = fail, 0 = retry immediately, N = retry in N seconds

Implements resip::ClientRegistrationHandler.

Definition at line 59 of file basicRegister.cxx.

References InfoLog.

      {
         InfoLog ( << "ClientHandler:onRequestRetry");
         return -1;
      }
virtual void ClientHandler::onSuccess ( ClientRegistrationHandle  ,
const SipMessage response 
) [inline, virtual]

Called when registraion succeeds or each time it is sucessfully refreshed.

Implements resip::ClientRegistrationHandler.

Definition at line 34 of file basicRegister.cxx.

References InfoLog, and resipCerr.

      {
         InfoLog( << "ClientHandler::onSuccess: " << endl );

         resipCerr << "Pausing before unregister" << endl;
         
#ifdef WIN32
         Sleep(2000);
#else
         sleep(5);
#endif
         h->removeAll();
      }

Member Data Documentation

Definition at line 65 of file basicRegister.cxx.

Referenced by main().


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