mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-16 01:42:29 +08:00
Implement a SOCKSv5 client according to RFC 1928. Server implementation will be added in another PR to keep sizes down. https://datatracker.ietf.org/doc/html/rfc1928 A few meaningful changes: Add all relevant types used across SOCKS clients and servers Add a state machine used to manage a connection from a clients side Add a channel handler that should be added at the very start of a channel pipeline
35 lines
1002 B
Swift
35 lines
1002 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftNIO open source project
|
|
//
|
|
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// ClientStateMachine+Tests+XCTest.swift
|
|
//
|
|
import XCTest
|
|
|
|
///
|
|
/// NOTE: This file was generated by generate_linux_tests.rb
|
|
///
|
|
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
|
|
///
|
|
|
|
extension ClientStateMachineTests {
|
|
|
|
static var allTests : [(String, (ClientStateMachineTests) -> () throws -> Void)] {
|
|
return [
|
|
("testUsualWorkflow", testUsualWorkflow),
|
|
("testErrorsAreHandled", testErrorsAreHandled),
|
|
]
|
|
}
|
|
}
|
|
|