Enum AFSocketType

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

public enum AFSocketType extends Enum<AFSocketType>
Describes the "type" of a socket.
Author:
Christian Kohlschütter
  • Enum Constant Details

    • SOCK_STREAM

      public static final AFSocketType SOCK_STREAM
      Stream-oriented socket.
    • SOCK_DGRAM

      public static final AFSocketType SOCK_DGRAM
      Datagram-oriented socket. Usually permitting data loss (but not with AFUNIXSocket).
    • SOCK_SEQPACKET

      public static final AFSocketType SOCK_SEQPACKET
      Sequential packet socket.
    • SOCK_RDM

      public static final AFSocketType SOCK_RDM
      Reliably-delivered datagram messages. Used by AFTIPCDatagramSocket to differentiate between datagram connects that may or may not permit package loss.
  • Method Details

    • values

      public static AFSocketType[] values()
      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 AFSocketType valueOf(String name)
      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