Home telegram - mtTcpConnectionBehaviour
Post
Cancel

telegram - mtTcpConnectionBehaviour

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;
This post is licensed under CC BY 4.0 by the author.