2017-07-18 01:17:29 +08:00
|
|
|
//
|
|
|
|
// OpenVPNReachability.h
|
|
|
|
// OpenVPN Adapter
|
|
|
|
//
|
|
|
|
// Created by Sergey Abramchuk on 17.07.17.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "OpenVPNReachabilityStatus.h"
|
|
|
|
|
|
|
|
@interface OpenVPNReachability : NSObject
|
|
|
|
|
2017-07-18 23:09:58 +08:00
|
|
|
@property (readonly, nonatomic) BOOL isTracking;
|
2017-07-18 01:17:29 +08:00
|
|
|
@property (readonly, nonatomic) OpenVPNReachabilityStatus reachabilityStatus;
|
|
|
|
|
2017-07-18 22:26:39 +08:00
|
|
|
- (nonnull instancetype)init;
|
2017-07-18 01:17:29 +08:00
|
|
|
|
2017-08-22 14:52:43 +08:00
|
|
|
- (void)startTrackingWithCallback:(nullable void (^)(OpenVPNReachabilityStatus))callback;
|
2017-07-18 01:17:29 +08:00
|
|
|
- (void)stopTracking;
|
|
|
|
|
|
|
|
@end
|