Schnittstelle ThreadedSocketService.OnRun

Umschließende Klasse:
ThreadedSocketService
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface ThreadedSocketService.OnRun
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    onRun(SocketConnection connection, Object source_object)
    The ::run signal is emitted in a worker thread in response to an
    incoming connection.
  • Methodendetails

    • onRun

      boolean onRun(@Nonnull SocketConnection connection, @Nullable Object source_object)
      The ::run signal is emitted in a worker thread in response to an
      incoming connection. This thread is dedicated to handling
      @connection and may perform blocking IO. The signal handler need
      not return until the connection is closed.
      Parameter:
      connection - a new #GSocketConnection object.
      source_object - the source_object passed to g_socket_listener_add_address().
      Gibt zurück:
      %TRUE to stop further signal handlers from being called