MTTcpConnectionBehaviour
protocol
MTTcpConnectionBehaviourDelegate
// requests reconnection
- (void)tcpConnectionBehaviourRequestsReconnection:(MTTcpConnectionBehaviour *)behaviour error:(bool)error;
class
MTTcpConnectionBehaviour
@property (nonatomic, weak) id<MTTcpConnectionBehaviourDelegate> delegate;
@property (nonatomic, strong, readonly) MTQueue *queue;
@property (nonatomic) bool needsReconnection;
- (instancetype)initWithQueue:(MTQueue *)queue;
// request reconnection
- (void)requestConnection;
// connection opened
- (void)connectionOpened;
// connection received valid data
- (void)connectionValidDataReceived;
// connection closed
- (void)connectionClosed;
// clear backoff
- (void)clearBackoff;