SwiftprotocolRemotePairingDevice

protocol RemotePairingDevice.TunnelInterface

Members 10

  1. varstatic var defaultMTU: UInt16 { get }
  2. varstatic var maxSupportedMTU: UInt16 { get }
  3. varstatic var maxSupportedPendingPackets: UInt32 { get }
  4. varstatic var minSupportedMTU: UInt16 { get }
  5. funcmethod descriptor for getInterfaceStatistics() throws -> RemotePairingDevice.TunnelInterfaceStatistics
  6. funcmethod descriptor for readPackets(completion: (RemotePairingDevice.ReadPacketGroup) -> ()) -> ()
  7. funcmethod descriptor for writePackets(_: [RemotePairingDevice.TunnelPacket], completion: (Error?) -> ()) -> ()
  8. initmethod descriptor for init(queue: OS_dispatch_queue, address: Network.IPAddress, netmask: Network.IPAddress, mtu: UInt16?, maxPendingPackets: UInt32?, physicalInterfaceName: String?) throws -> A
  9. varvar address: Network.IPAddress { get }
  10. varvar interfaceName: String { get }
protocol TunnelInterface {
    init(queue: __C.OS_dispatch_queue, address: any Network.IPAddress, netmask: any Network.IPAddress, mtu: Swift.UInt16?, maxPendingPackets: Swift.UInt32?, physicalInterfaceName: Swift.String?) throws

    var address: any Network.IPAddress {
        get
    }
    var interfaceName: Swift.String {
        get
    }

    func writePackets(_: [RemotePairingDevice.TunnelPacket], completion: @escaping (_: (any Swift.Error)?) -> ())
    func readPackets(completion: @escaping (_: RemotePairingDevice.ReadPacketGroup) -> ())
    func getInterfaceStatistics() throws -> RemotePairingDevice.TunnelInterfaceStatistics

    static var defaultMTU: Swift.UInt16 {
        get
    }
    static var maxSupportedMTU: Swift.UInt16 {
        get
    }
    static var maxSupportedPendingPackets: Swift.UInt32 {
        get
    }
    static var minSupportedMTU: Swift.UInt16 {
        get
    }
}