Enum AFUNIXSocketCapability

java.lang.Object
java.lang.Enum<AFUNIXSocketCapability>
org.newsclub.net.unix.AFUNIXSocketCapability
All Implemented Interfaces:
Serializable, Comparable<AFUNIXSocketCapability>, java.lang.constant.Constable

@Deprecated public enum AFUNIXSocketCapability extends Enum<AFUNIXSocketCapability>
Deprecated.
Describes junixsocket capabilities the current environment (system platform, native library, etc.) may or may not support. You can check whether your environment supports a given capability by calling AFSocket.supports(AFUNIXSocketCapability). This enum is deprecated. Use AFSocketCapability instead.
See Also:
  • Enum Constant Details

    • CAPABILITY_PEER_CREDENTIALS

      public static final AFUNIXSocketCapability CAPABILITY_PEER_CREDENTIALS
      Deprecated.
      Socket supports retrieving peer credentials.
    • CAPABILITY_ANCILLARY_MESSAGES

      public static final AFUNIXSocketCapability CAPABILITY_ANCILLARY_MESSAGES
      Deprecated.
      Socket supports sending and receiving ancillary messages.
    • CAPABILITY_FILE_DESCRIPTORS

      public static final AFUNIXSocketCapability CAPABILITY_FILE_DESCRIPTORS
      Deprecated.
      Socket supports passing file descriptors via ancillary messages.
    • CAPABILITY_ABSTRACT_NAMESPACE

      public static final AFUNIXSocketCapability CAPABILITY_ABSTRACT_NAMESPACE
      Deprecated.
      Socket addressing supports the abstract namespace (Linux).
    • CAPABILITY_DATAGRAMS

      public static final AFUNIXSocketCapability CAPABILITY_DATAGRAMS
      Deprecated.
      Support for AF_UNIX datagrams (not on Windows yet).
    • CAPABILITY_NATIVE_SOCKETPAIR

      public static final AFUNIXSocketCapability CAPABILITY_NATIVE_SOCKETPAIR
      Deprecated.
      A pair of interconnected sockets can be created natively. This currently not possible on Windows, but instead emulated via anonymous AF_INET ports when you use AFUNIXSocketPair.
  • Method Details

    • values

      public static AFUNIXSocketCapability[] values()
      Deprecated.
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AFUNIXSocketCapability valueOf(String name)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null