/*
 * Copyright 2015-2025 the original author or authors.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */

package fucksocks.server.msg;

public enum ServerReply {

  SUCCESSED(0x00),
  GENERAL_SOCKS_SERVER_FAILURE(0x01),
  CONNECTION_NOT_ALLOWED_BY_RELESET(0x02),
  NETWORK_UNREACHABLE(0x03),
  HOST_UNREACHABLE(0x04),
  CONNECTION_REFUSED(0x05),
  TTL_EXPIRED(0x06),
  COMMAND_NOT_SUPPORTED(0x07),
  ADDRESS_TYPE_NOT_SUPPORTED(0x08);

  private byte value;

  private ServerReply(int value) {
    this.value = (byte) value;
  }

  public byte getValue() {
    return value;
  }

}

@@ -638,16 +638,244 @@
 r.msg;%0A%0A
+/**%0A * %0A * The enumeration %3Ccode%3EServerReply%3C/code%3E represents reply of servers will SOCKS client send a%0A * command request to the SOCKS server.%0A * %0A * @author Youchao Feng%0A * @date May 4, 2015 4:01:14 AM%0A * @version 1.0%0A *%0A */%0A
 public e
@@ -897,17 +897,45 @@
  %7B%0A%0A
+  /**%0A   * Succeeded.%0A   */%0A
   SUCCE
-SS
+ED
 ED(0
@@ -944,45 +944,146 @@
 0),%0A
-  GENERAL_SOCKS_SERVER_FAILURE(0x01),
+%0A  /**%0A   * General SOCKS server failure.%0A   */%0A  GENERAL_SOCKS_SERVER_FAILURE(0x01),%0A%0A  /**%0A   * Connection not allowed by ruleset.%0A   */
 %0A  C
@@ -1108,17 +1108,17 @@
 WED_BY_R
-E
+U
 LESET(0x
@@ -1126,273 +1126,700 @@
 2),%0A
-  NETWORK_UNREACHABLE(0x03),%0A  HOST_UNREACHABLE(0x04),%0A  CONNECTION_REFUSED(0x05),%0A  TTL_EXPIRED(0x06),%0A  COMMAND_NOT_SUPPORTED(0x07),%0A  ADDRESS_TYPE_NOT_SUPPORTED(0x08);%0A%0A  private byte value;%0A%0A  private ServerReply(int value) %7B%0A    this.value = (byte) value;%0A  %7D%0A
+%0A  /**%0A   * Network unreachable.%0A   */%0A  NETWORK_UNREACHABLE(0x03),%0A%0A  /**%0A   * Host unreachable.%0A   */%0A  HOST_UNREACHABLE(0x04),%0A%0A  /**%0A   * Connection refused.%0A   */%0A  CONNECTION_REFUSED(0x05),%0A%0A  /**%0A   * TTL expired.%0A   */%0A  TTL_EXPIRED(0x06),%0A%0A  /**%0A   * Command not supported.%0A   */%0A  COMMAND_NOT_SUPPORTED(0x07),%0A%0A  /**%0A   * Address type not supported.%0A   */%0A  ADDRESS_TYPE_NOT_SUPPORTED(0x08);%0A%0A  /**%0A   * Code of the reply.%0A   */%0A  private byte value;%0A%0A  /**%0A   * A private constructor.%0A   * %0A   * @param value Reply code.%0A   */%0A  private ServerReply(int value) %7B%0A    this.value = (byte) value;%0A  %7D%0A%0A  /**%0A   * Returns reply code in byte.%0A   * %0A   * @return Reply code in byte.%0A   */
 %0A  p

Fix some spelling errors