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 : Nil | String = nil) new

Instance Method Detail

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

[View source]
def connect(handler : Proc(Gio::SocketConnection, GObject::Object | Nil, Bool), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gio::SocketService, Gio::SocketConnection, GObject::Object | Nil, Bool), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit(connection : Gio::SocketConnection, source_object : GObject::Object | Nil) : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]