2
0

WFCCNetworkStatus.h 679 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // WFCCNetworkStatus.h
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/11/5.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <SystemConfiguration/SCNetworkReachability.h>
  10. @protocol WFCCNetworkStatusDelegate
  11. -(void) ReachabilityChange:(UInt32)uiFlags;
  12. @end
  13. @interface WFCCNetworkStatus : NSObject {
  14. __unsafe_unretained id<WFCCNetworkStatusDelegate> m_delWFCNetworkStatus;
  15. }
  16. + (WFCCNetworkStatus*)sharedInstance;
  17. -(void) Start:(__unsafe_unretained id<WFCCNetworkStatusDelegate>)delWFCNetworkStatus;
  18. -(void) Stop;
  19. -(void) ChangeReach;
  20. - (SCNetworkConnectionFlags)connFlags;
  21. - (bool)isConnectionAvaible;
  22. @end