ssrlive / BadvpnTun2socks

BadvpnTun2socks for iOS Xcode project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BadvpnTun2socks for iOS Xcode project

usage

  • Include the header file in your project
#import <BadvpnTun2socks/TunnelInterface.h>
  • In method startTunnelWithOptions:completionHandler: of your NEPacketTunnelProvider subclass, start the tunnel interface
    NSError* error2 = [[TunnelInterface sharedInterface] startTun2Socks:(int)self->_s5_port withPacketTunnelFlow:self.packetFlow];
    if (error2) {
        completionHandler(error2);
        return;
    }
  • In method stopTunnelWithReason:completionHandler: of your NEPacketTunnelProvider subclass, stop the tunnel interface
    [[TunnelInterface sharedInterface] stopTun2Socks];

About

BadvpnTun2socks for iOS Xcode project


Languages

Language:C 81.4%Language:Objective-C 18.6%