blob: 6c2a5f7995be6387b28013d4fb4fde6ea6866091 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//
// Socks5StatusCode.swift
// MullvadTransport
//
// Created by pronebird on 19/10/2023.
//
import Foundation
/// Status code used in socks protocol.
public enum Socks5StatusCode: UInt8, Sendable {
case succeeded = 0x00
case failure = 0x01
case connectionNotAllowedByRuleset = 0x02
case networkUnreachable = 0x03
case hostUnreachable = 0x04
case connectionRefused = 0x05
case ttlExpired = 0x06
case commandNotSupported = 0x07
case addressTypeNotSupported = 0x08
}
|