tunnelkit/TunnelKit/Sources/AppExtension/Transport/NWTCPConnectionState+Descri...

25 lines
626 B
Swift
Raw Normal View History

2018-08-23 08:19:25 +00:00
//
// NWTCPConnectionState+Description.swift
// PIATunnel
//
// Created by Davide De Rosa on 4/16/18.
// Copyright © 2018 London Trust Media. All rights reserved.
//
import Foundation
import NetworkExtension
/// :nodoc:
extension NWTCPConnectionState: CustomStringConvertible {
public var description: String {
switch self {
case .cancelled: return "cancelled"
case .connected: return "connected"
case .connecting: return "connecting"
case .disconnected: return "disconnected"
case .invalid: return "invalid"
case .waiting: return "waiting"
}
}
}