mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Wrap clock tick property
This commit is contained in:
@@ -82,6 +82,9 @@ typedef NS_ENUM(NSInteger, OpenVPNTLSCertProfile) {
|
|||||||
OpenVPNTLSCertProfileDefault
|
OpenVPNTLSCertProfileDefault
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
Class used to pass configuration
|
||||||
|
*/
|
||||||
@interface OpenVPNConfiguration : NSObject
|
@interface OpenVPNConfiguration : NSObject
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -200,4 +203,11 @@ typedef NS_ENUM(NSInteger, OpenVPNTLSCertProfile) {
|
|||||||
*/
|
*/
|
||||||
@property (nonatomic) BOOL info;
|
@property (nonatomic) BOOL info;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Periodic convenience clock tick in milliseconds. Will call
|
||||||
|
[OpenVPNAdapterDelegate tick] at a frequency defined by this parameter.
|
||||||
|
Set to 0 to disable.
|
||||||
|
*/
|
||||||
|
@property (nonatomic) NSUInteger clockTick;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@@ -359,4 +359,12 @@ using namespace openvpn;
|
|||||||
_config.info = info;
|
_config.info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSUInteger)clockTick {
|
||||||
|
return _config.clockTickMS;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setClockTick:(NSUInteger)clockTick {
|
||||||
|
_config.clockTickMS = clockTick;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user