TCConnectionDelegate is the delegate protocol for receiving TCConnection state-change notifications.
| Selector | Description | Type |
|---|---|---|
| – connection:didFailWithError: | The TCConnection has failed with an error. |
Instance Method |
| – connectionDidStartConnecting: | The TCConnection is in the process of trying to connect. |
Instance Method |
| – connectionDidConnect: | The TCConnection has successfully connected. |
Instance Method |
| – connectionDidDisconnect: | The TCConnection has just disconnected. |
Instance Method |
connection:didFailWithError:The TCConnection has failed with an error.
- (void)connection:(TCConnection *)connection didFailWithError:(NSError *)error| Name | Description |
|---|---|
| connection | The TCConnection that encountered an error |
| error | The NSError for the error encountered by TCConnection |
None
The TCConnection has failed with an error.
When this occurs the TCConnection will be in the TCConnectionStateClosed state.
TCConnectionDelegate.hconnectionDidConnect:The TCConnection has successfully connected.
- (void)connectionDidConnect:(TCConnection *)connection| Name | Description |
|---|---|
| connection | The TCConnection that has just connected. |
None
The TCConnection has successfully connected.
When this occurs, TCConnection is in the TCConnectionStateOpen state.
TCConnectionDelegate.hconnectionDidDisconnect:The TCConnection has just disconnected.
- (void)connectionDidDisconnect:(TCConnection *)connection| Name | Description |
|---|---|
| connection | The TCConnection has just disconnected. |
None
The TCConnection has just disconnected.
This will occur when the connection has been diconnected or ignored by any party. When this occurs the TCConnection will be in the TCConnectionStateClosed state.
TCConnectionDelegate.hconnectionDidStartConnecting:The TCConnection is in the process of trying to connect.
- (void)connectionDidStartConnecting:(TCConnection *)connection| Name | Description |
|---|---|
| connection | The TCConnection that is in the process of trying to connect. |
None
The TCConnection is in the process of trying to connect.
When this occurs, TCConnection is in the TCConnectionStateConnecting state.
TCConnectionDelegate.h