Enum Class SocketClientEvent

java.lang.Object
java.lang.Enum<SocketClientEvent>
org.gnome.gio.SocketClientEvent
All Implemented Interfaces:
Serializable, Comparable<SocketClientEvent>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum SocketClientEvent extends Enum<SocketClientEvent> implements Enumeration

Describes an event occurring on a GSocketClient. See the GSocketClient::event signal for more details.

Additional values may be added to this type in the future.

Since:
2.32
  • Enum Constant Details

    • RESOLVING

      public static final SocketClientEvent RESOLVING
      The client is doing a DNS lookup.
    • RESOLVED

      public static final SocketClientEvent RESOLVED
      The client has completed a DNS lookup.
    • CONNECTING

      public static final SocketClientEvent CONNECTING
      The client is connecting to a remote host (either a proxy or the destination server).
    • CONNECTED

      public static final SocketClientEvent CONNECTED
      The client has connected to a remote host.
    • PROXY_NEGOTIATING

      public static final SocketClientEvent PROXY_NEGOTIATING
      The client is negotiating with a proxy to connect to the destination server.
    • PROXY_NEGOTIATED

      public static final SocketClientEvent PROXY_NEGOTIATED
      The client has negotiated with the proxy server.
    • TLS_HANDSHAKING

      public static final SocketClientEvent TLS_HANDSHAKING
      The client is performing a TLS handshake.
    • TLS_HANDSHAKED

      public static final SocketClientEvent TLS_HANDSHAKED
      The client has performed a TLS handshake.
    • COMPLETE

      public static final SocketClientEvent COMPLETE
      The client is done with a particular GSocketConnectable.
  • Method Details

    • values

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

      public static SocketClientEvent valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static SocketClientEvent of(int value)
      Create a new SocketClientEvent for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static SocketClientEvent of(MemorySegment address)
      Create a new SocketClientEvent for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the SocketClientEvent class.
      Returns:
      the GType