mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-06-02 02:56:03 +08:00
Make ClientGreeting internal
This commit is contained in:
parent
592a3f867f
commit
213ded5f3d
@ -14,21 +14,9 @@
|
|||||||
|
|
||||||
import NIO
|
import NIO
|
||||||
|
|
||||||
/// The SOCKS handshake begins with the client sending a greeting
|
struct ClientGreeting: Hashable {
|
||||||
/// containing supported authentication methods.
|
let version: UInt8 = 5
|
||||||
public struct ClientGreeting: Hashable {
|
var methods: [AuthenticationMethod]
|
||||||
|
|
||||||
/// 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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension ByteBuffer {
|
extension ByteBuffer {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user