Package ch.bailu.gtk.gio
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.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onRun
(SocketConnection connection, Object source_object) The ::run signal is emitted in a worker thread in response to an
incoming connection.
-
Method Details
-
onRun
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
-