struct Gio::SocketService::IncomingSignal
- Gio::SocketService::IncomingSignal
- GObject::Signal
- Struct
- Value
- Object
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.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Gio::SocketConnection, GObject::Object | Nil, Bool)) : GObject::SignalConnection
- #connect(handler : Proc(Gio::SocketConnection, GObject::Object | Nil, Bool), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gio::SocketService, Gio::SocketConnection, GObject::Object | Nil, Bool), *, after : Bool = false) : GObject::SignalConnection
- #emit(connection : Gio::SocketConnection, source_object : GObject::Object | Nil) : Nil
-
#name : String
The signal name
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
#
def connect(handler : Proc(Gio::SocketConnection, GObject::Object | Nil, Bool), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gio::SocketService, Gio::SocketConnection, GObject::Object | Nil, Bool), *, after : Bool = false) : GObject::SignalConnection
#