ZitiTunnelProvider
public protocol ZitiTunnelProvider : AnyObject
Protocol for delegate of ZitiTunnel that handles routes, writing packets, and tunnel events
-
Indicates the specified route should be intercepted
Declaration
Swift
func addRoute(_ dest: String) -> Int32
-
Indicates the specified route should no longer be intercepted
Declaration
Swift
func deleteRoute(_ dest: String) -> Int32
-
Indicates router to never intercept, ragarless of service configation (e.g., addresses of Ziti controllers and routers)
Declaration
Swift
func excludeRoute(_ dest: String, _ loop: OpaquePointer?) -> Int32
-
Indicates a set of routes have been added of deleted and can be commited to the network interface
Declaration
Swift
func commitRoutes(_ loop: OpaquePointer?) -> Int32
-
Indicates a packet should be written to the tunnel interface
Declaration
Swift
func writePacket(_ data: Data)
-
Callback invoked when tunnel events are received
Declaration
Swift
func tunnelEventCallback(_ event: ZitiTunnelEvent)