//
|
// ReconnectControl.h
|
// HeBeiFM
|
//
|
// Created by Apple on 16/9/22.
|
// Copyright © 2016年 Apple. All rights reserved.
|
//
|
|
#import <Foundation/Foundation.h>
|
#import "PrefixHeader.pch"
|
//socket重连状态,正在重连/停止重连
|
typedef enum
|
{
|
ReconnecNone,
|
Reconnecting,
|
}ReconnectStatus;
|
|
typedef void(^VoidBlock)(void);
|
|
@interface ReconnectControl : NSObject
|
|
+(ReconnectControl *)shareControl;
|
|
@property (assign,nonatomic) ReconnectStatus status;
|
|
-(void)reconnect;
|
|
-(void)startReconnectBlock:(VoidBlock)noticeUI success:(VoidBlock)success;
|
|
|
@end
|