Declare custom packet flow class

This commit is contained in:
Sergey Abramchuk
2017-10-28 11:24:16 +03:00
parent f580449921
commit 0cc84b259a
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
//
// CustomFlow.swift
// OpenVPN Adapter
//
// Created by Sergey Abramchuk on 28.10.2017.
//
import NetworkExtension
class CustomFlow: NEPacketTunnelFlow {
override func readPacketObjects(completionHandler: @escaping ([NEPacket]) -> Void) {
super.readPacketObjects(completionHandler: completionHandler)
}
override func writePacketObjects(_ packets: [NEPacket]) -> Bool {
return super.writePacketObjects(packets)
}
}