mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Refactor implementation of OpenVPNPacketFlowBridge class
This commit is contained in:
@@ -3,21 +3,25 @@
|
||||
// OpenVPN Adapter
|
||||
//
|
||||
// Created by Jonathan Downing on 12/10/2017.
|
||||
// Modified by Sergey Abramchuk on 15/01/2018.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class NEPacketTunnelFlow;
|
||||
@protocol OpenVPNAdapterPacketFlow;
|
||||
|
||||
@interface OpenVPNPacketFlowBridge : NSObject
|
||||
@interface OpenVPNPacketFlowBridge: NSObject
|
||||
|
||||
@property (nonatomic, readonly) CFSocketNativeHandle socketHandle;
|
||||
@property (nonatomic, readonly) CFSocketRef openVPNSocket;
|
||||
@property (nonatomic, readonly) CFSocketRef packetFlowSocket;
|
||||
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
- (nullable instancetype)initWithPacketFlow:(id<OpenVPNAdapterPacketFlow>)packetFlow NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
- (nullable instancetype)initWithPacketFlow:(NEPacketTunnelFlow *)packetFlow NS_DESIGNATED_INITIALIZER;
|
||||
- (BOOL)configureSocketsWithError:(NSError **)error;
|
||||
- (void)startReading;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user