struct Gio::SocketService::IncomingSignal

Overview

The ::incoming signal is emitted when a new incoming connection to @service needs to be handled. The handler must initiate the handling of @connection, but may not block; in essence, asynchronous operations must be used.

@connection will be unreffed once the signal handler returns, so you need to ref it yourself if you are planning to use it.

Defined in:

lib/gi-crystal/src/auto/gio-2.0/socket_service.cr

Instance Method Summary

Instance methods inherited from struct GObject::Signal

[](detail : String) : self [], name : String name

Constructor methods inherited from struct GObject::Signal

new(source : GObject::Object, detail : String? = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(Gio::SocketConnection, GObject::Object?, Bool)) : GObject::SignalConnection #

def connect(handler : Proc(Gio::SocketConnection, GObject::Object?, Bool), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Gio::SocketService, Gio::SocketConnection, GObject::Object?, Bool), *, after : Bool = false) : GObject::SignalConnection #

def emit(connection : Gio::SocketConnection, source_object : GObject::Object?) : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name