mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Declare open vpn adapter class and methods for client configuration
This commit is contained in:
37
OpenVPN Tunnel Provider/OpenVPNAdapter+Client.h
Normal file
37
OpenVPN Tunnel Provider/OpenVPNAdapter+Client.h
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// OpenVPNAdapter+Client.h
|
||||
// OpenVPN iOS Client
|
||||
//
|
||||
// Created by Sergey Abramchuk on 11.02.17.
|
||||
//
|
||||
//
|
||||
|
||||
#import <openvpn/client/ovpncli.hpp>
|
||||
|
||||
#import "OpenVPNAdapter.h"
|
||||
|
||||
|
||||
using namespace openvpn;
|
||||
|
||||
@interface OpenVPNAdapter (Client)
|
||||
|
||||
- (BOOL)configureSockets;
|
||||
|
||||
- (void)setRemoteAddress:(NSString *)address;
|
||||
|
||||
- (void)addLocalAddress:(NSString *)address subnet:(NSString *)subnet gateway:(NSString *)gateway;
|
||||
|
||||
- (void)addRoute:(NSString *)route subnet:(NSString *)subnet;
|
||||
- (void)excludeRoute:(NSString *)route subnet:(NSString *)subnet;
|
||||
|
||||
- (void)addDNSAddress:(NSString *)address;
|
||||
- (void)addSearchDomain:(NSString *)domain;
|
||||
|
||||
- (void)setMTU:(NSInteger)mtu;
|
||||
|
||||
- (NSInteger)establishTunnel;
|
||||
|
||||
- (void)handleEvent:(const ClientAPI::Event *)event;
|
||||
- (void)handleLog:(const ClientAPI::LogInfo *)log;
|
||||
|
||||
@end
|
||||
14
OpenVPN Tunnel Provider/OpenVPNAdapter.h
Normal file
14
OpenVPN Tunnel Provider/OpenVPNAdapter.h
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// OpenVPNAdapter.h
|
||||
// OpenVPN iOS Client
|
||||
//
|
||||
// Created by Sergey Abramchuk on 11.02.17.
|
||||
//
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
|
||||
@interface OpenVPNAdapter : NSObject
|
||||
|
||||
@end
|
||||
14
OpenVPN Tunnel Provider/OpenVPNAdapter.mm
Normal file
14
OpenVPN Tunnel Provider/OpenVPNAdapter.mm
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// OpenVPNAdapter.m
|
||||
// OpenVPN iOS Client
|
||||
//
|
||||
// Created by Sergey Abramchuk on 11.02.17.
|
||||
//
|
||||
//
|
||||
|
||||
#import "OpenVPNAdapter.h"
|
||||
|
||||
|
||||
@implementation OpenVPNAdapter
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user