![]() |
DEPRECATED: Diffusion iOS Classic API
5.9.4
|
Protocol implemented by classes wishing to receive notification from Diffusion. More...
#import <DFClientDelegate.h>
Instance Methods | |
(void) | - onConnection: |
This method will be called when the DFClient trys to connect, if the connection is made then isConnected will be YES. | |
(void) | - onMessage: |
This method will be called when a message has been received from the Diffusion Server. | |
(void) | - onPing: |
This method will be called on receipt of the ping request. | |
(void) | - onMessageNotAcknowledged: |
This method will be called if the server didn't respond to an Ack Message in time. | |
(void) | - onConnectionSequenceExhausted: |
The list of DFServerDetails object has been exhausted, and no connection can be placed. | |
(void) | - onConnectionFailedWithError: |
This method will be called, if implemented, for all failed connections. | |
(void) | - onLostConnection |
This method will be called when the DFClient has lost connection to the Diffusion Server. | |
(void) | - onAbort |
This method will be called when the Diffusion Server has terminated the connection (barred). | |
(void) | - onServerRejectedConnection |
This method will be called after a send credentials message, and the server rejected the credentials. | |
(void) | - onTopicRemoved: |
Conveys news from the Diffusion server that the named topic no longer exists. | |
(void) | - onConnectionDetailsAcquired:forClient: |
The given DFServerDetails object has been selected for connection. | |
Protocol implemented by classes wishing to receive notification from Diffusion.
Notification primarily of new messages and the state of the connection to the server.
|
optional |
This method will be called when the Diffusion Server has terminated the connection (barred).
It will not be called if onConnectionFailedWithError: has been implemented.
- (void) onConnection: | (BOOL) | isConnected |
This method will be called when the DFClient trys to connect, if the connection is made then isConnected will be YES.
It will not be called with a value NO for isConnected if onConnectionFailedWithError: has been implemented.
isConnected |
|
optional |
The given DFServerDetails object has been selected for connection.
details | Details object that has been chosen. |
client | DFClient that has chosen this DFServerDetails |
|
optional |
This method will be called, if implemented, for all failed connections.
In which case the following messages will no longer be sent:
- (void) onConnectionSequenceExhausted: | (DFClient *) | client |
The list of DFServerDetails object has been exhausted, and no connection can be placed.
Once this method is called the set of DFServerDetails is reset and further connections can be placed. In most simple scenarios where there is only one DFServerDetails object in the DFConnectionDetails object it should suffice to call method [client connect] here.
client | DFClient that has exhausted its set of DFServerDetails object from the DFClientDetails object. |
|
optional |
This method will be called when the DFClient has lost connection to the Diffusion Server.
It will not be called if onConnectionFailedWithError: has been implemented.
- (void) onMessage: | (DFTopicMessage *) | message |
This method will be called when a message has been received from the Diffusion Server.
This method will be called as well as any TopicListeners that might match the topic.
- (void) onMessageNotAcknowledged: | (DFTopicMessage *) | message |
This method will be called if the server didn't respond to an Ack Message in time.
- (void) onPing: | (DFPingMessage *) | message |
This method will be called on receipt of the ping request.
message | PingMessage |
|
optional |
This method will be called after a send credentials message, and the server rejected the credentials.
It will not be called if onConnectionFailedWithError: has been implemented.