Lightstreamer iOS Client 1.1.1
Native iOS/Mac OS X Client library for Lightstreamer Server version 4.x and up
Public Member Functions

<LSConnectionDelegate> Protocol Reference

The LSConnectionDelegate protocol receives notifications of connection activity and errors. More...

#import <LSConnectionDelegate.h>

List of all members.

Public Member Functions

(void) - clientConnection:didStartSessionWithPolling:
 Notification that the session has been successfully opened.
(void) - clientConnection:didReceiveNewBytes:
 Notification that the connection received new bytes from the Server.
(void) - clientConnection:didChangeActivityWarningStatus:
 Notification that the connection did enter or did exit a stalled state.
(void) - clientConnectionDidEstablish:
 Notification that the connection has been established.
(void) - clientConnectionDidClose:
 Notification that the connection did close.
(void) - clientConnection:didEndWithCause:
 Notification that the connection did end due to a Server-side decision.
(void) - clientConnection:didReceiveDataError:
 Notification that a block of data received from the Server could not be correctly interpreted.
(void) - clientConnection:didReceiveServerFailure:
 Notification that an unrecoverable exception signaled by the Server has been received.
(void) - clientConnection:didReceiveConnectionFailure:
 Notification that an unrecoverable connection error has been detected.

Detailed Description

The LSConnectionDelegate protocol receives notifications of connection activity and errors.


Member Function Documentation

- (void) clientConnection: (LSClient *)  client
didChangeActivityWarningStatus: (BOOL)  warningStatus 
[optional]

Notification that the connection did enter or did exit a stalled state.

"Stalled" means that the LSClient object did not receive any new bytes for more then the probeWarningSecs specified on the LSConnectionInfo object when opening the connection.

Parameters:
clientThe LSClient object that handles the connection.
warningStatusYES if the connection did enter a stalled state, NO otherwise.
- (void) clientConnection: (LSClient *)  client
didEndWithCause: (int)  cause 
[optional]

Notification that the connection did end due to a Server-side decision.

Parameters:
clientThe LSClient object that handles the connection.
causeSpecifies the cause that led the Server to close the connection.
- (void) clientConnection: (LSClient *)  client
didReceiveConnectionFailure: (LSPushConnectionException *)  failure 
[optional]

Notification that an unrecoverable connection error has been detected.

Parameters:
clientThe LSClient object that handles the connection.
failureThe specific error that has been detected.
- (void) clientConnection: (LSClient *)  client
didReceiveDataError: (LSPushServerException *)  error 
[optional]

Notification that a block of data received from the Server could not be correctly interpreted.

Parameters:
clientThe LSClient object that handles the connection.
errorThe specific exception that explains the error.
- (void) clientConnection: (LSClient *)  client
didReceiveNewBytes: (int)  bytesLength 
[optional]

Notification that the connection received new bytes from the Server.

Parameters:
clientThe LSClient object that handles the connection.
bytesLengthThe number of bytes received
- (void) clientConnection: (LSClient *)  client
didReceiveServerFailure: (LSPushServerException *)  failure 
[optional]

Notification that an unrecoverable exception signaled by the Server has been received.

Parameters:
clientThe LSClient object that handles the connection.
failureThe specific exception that has been received.
- (void) clientConnection: (LSClient *)  client
didStartSessionWithPolling: (BOOL)  polling 
[optional]

Notification that the session has been successfully opened.

Parameters:
clientThe LSClient object that handles the connection.
pollingTells if the session is in streaming mode or polling mode.
- (void) clientConnectionDidClose: (LSClient *)  client [optional]

Notification that the connection did close.

It may be received only after a call to closeConnection on the LSClient object.

Parameters:
clientThe LSClient object that handles the connection.
- (void) clientConnectionDidEstablish: (LSClient *)  client [optional]

Notification that the connection has been established.

Parameters:
clientThe LSClient object that handles the connection.

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