1
0
mirror of https://github.com/apple/swift-nio-extras.git synced 2025-05-31 18:17:44 +08:00

Make ClientGreeting internal

This commit is contained in:
David Evans 2021-06-07 10:45:00 +01:00
parent 592a3f867f
commit 213ded5f3d

@ -14,21 +14,9 @@
import NIO
/// The SOCKS handshake begins with the client sending a greeting
/// containing supported authentication methods.
public struct ClientGreeting: Hashable {
/// The SOCKS protocol version - we currently only support v5.
public let version: UInt8 = 5
/// The client's supported authentication methods, defined in RFC 1928.
public var methods: [AuthenticationMethod]
/// Creates a new client greeting with the given authentication methods.
/// - parameter methods: The client's supported authentication methods.
public init(methods: [AuthenticationMethod]) {
self.methods = methods
}
struct ClientGreeting: Hashable {
let version: UInt8 = 5
var methods: [AuthenticationMethod]
}
extension ByteBuffer {