23 lines
566 B
Objective-C
23 lines
566 B
Objective-C
//
|
|
// TunnelInterface.h
|
|
// Potatso
|
|
//
|
|
// Created by LEI on 12/23/15.
|
|
// Copyright © 2015 TouchingApp. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@import NetworkExtension;
|
|
|
|
#define TunnelMTU 1600
|
|
#define kTun2SocksStoppedNotification @"kTun2SocksStoppedNotification"
|
|
|
|
@interface TunnelInterface : NSObject
|
|
+ (TunnelInterface *)sharedInterface;
|
|
+ (NSError *)setupWithPacketTunnelFlow:(NEPacketTunnelFlow *)packetFlow;
|
|
+ (void)processPackets;
|
|
+ (void)writePacket: (NSData *)packet;
|
|
+ (void)startTun2Socks: (int)socksServerPort;
|
|
+ (void)stop;
|
|
@end
|