mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-01-31 00:00:06 +08:00
22 lines
438 B
Swift
22 lines
438 B
Swift
//
|
|
// CustomFlow.swift
|
|
// OpenVPN Adapter
|
|
//
|
|
// Created by Sergey Abramchuk on 28.10.2017.
|
|
//
|
|
|
|
import NetworkExtension
|
|
@testable import OpenVPNAdapter
|
|
|
|
class CustomFlow: NSObject, OpenVPNAdapterPacketFlow {
|
|
|
|
func readPackets(completionHandler: @escaping ([Data], [NSNumber]) -> Void) {
|
|
|
|
}
|
|
|
|
func writePackets(_ packets: [Data], withProtocols protocols: [NSNumber]) -> Bool {
|
|
return true
|
|
}
|
|
|
|
}
|