SRConnectionDelegate Protocol Reference
Conforms to | NSObject |
Declared in | SRConnection.h |
Overview
The delegate of a SRConnection
object can optionally adapt the SRConnectionDelegate
protocol.
The methods of the protocol allow the delegate to receive update when events occur on the SRConnection
object some of these event include;
the connection being opened, reconnected, closed and when data or an error is received.
Tasks
-
– SRConnectionDidOpen:
Called when the
SRConnection
is opened -
– SRConnectionDidReconnect:
Called when the
SRConnection
is reconnected -
– SRConnection:didReceiveData:
Called when the
SRConnection
receives data -
– SRConnectionDidClose:
Called when the
SRConnection
is closed -
– SRConnection:didReceiveError:
Called when the
SRConnection
receives an error
Instance Methods
SRConnection:didReceiveData:
Called when the SRConnection
receives data
- (void)SRConnection:(SRConnection *)connection didReceiveData:(NSString *)data
Declared In
SRConnection.h
SRConnection:didReceiveError:
Called when the SRConnection
receives an error
- (void)SRConnection:(SRConnection *)connection didReceiveError:(NSError *)error
Declared In
SRConnection.h
SRConnectionDidClose:
Called when the SRConnection
is closed
- (void)SRConnectionDidClose:(SRConnection *)connection
Parameters
- connection
the
SRConnection
object dispatching the event
Declared In
SRConnection.h
SRConnectionDidOpen:
Called when the SRConnection
is opened
- (void)SRConnectionDidOpen:(SRConnection *)connection
Parameters
- connection
the
SRConnection
object dispatching the event
Declared In
SRConnection.h
SRConnectionDidReconnect:
Called when the SRConnection
is reconnected
- (void)SRConnectionDidReconnect:(SRConnection *)connection
Parameters
- connection
the
SRConnection
object dispatching the event
Declared In
SRConnection.h