Class DatagramBased.DatagramBasedInterface

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInterface
org.gnome.gio.DatagramBased.DatagramBasedInterface
All Implemented Interfaces:
Proxy
Enclosing interface:
DatagramBased

public static class DatagramBased.DatagramBasedInterface extends TypeInterface
Provides an interface for socket-like objects which have datagram semantics, following the Berkeley sockets API. The interface methods are thin wrappers around the corresponding virtual methods, and no pre-processing of inputs is implemented — so implementations of this API must handle all functionality documented in the interface methods.
Since:
2.48
  • Constructor Details

    • DatagramBasedInterface

      public DatagramBasedInterface(MemorySegment address)
      Create a DatagramBasedInterface proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • overrideReceiveMessages

      public void overrideReceiveMessages(Arena arena, @Nullable Method method)
      Override virtual method receive_messages.
      Parameters:
      method - the method to invoke
    • overrideSendMessages

      public void overrideSendMessages(Arena arena, @Nullable Method method)
      Override virtual method send_messages.
      Parameters:
      method - the method to invoke
    • overrideCreateSource

      public void overrideCreateSource(Arena arena, @Nullable Method method)
      Override virtual method create_source.
      Parameters:
      method - the method to invoke
    • overrideConditionCheck

      public void overrideConditionCheck(Arena arena, @Nullable Method method)
      Override virtual method condition_check.
      Parameters:
      method - the method to invoke
    • overrideConditionWait

      public void overrideConditionWait(Arena arena, @Nullable Method method)
      Override virtual method condition_wait.
      Parameters:
      method - the method to invoke