Interface ThreadedSocketService.OnRun

Enclosing class:
ThreadedSocketService
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ThreadedSocketService.OnRun
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onRun(SocketConnection connection, Object source_object)
    The ::run signal is emitted in a worker thread in response to an
    incoming connection.
  • Method Details

    • 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.
      Parameters:
      connection - a new #GSocketConnection object.
      source_object - the source_object passed to g_socket_listener_add_address().
      Returns:
      %TRUE to stop further signal handlers from being called