struct Gio::SocketListener::EventSignal

Overview

Emitted when listener's activity on socket changes state. Note that when listener is used to listen on both IPv4 and IPv6, a separate set of signals will be emitted for each, and the order they happen in is undefined.

Defined in:

lib/gi-crystal/src/auto/gio-2.0/socket_listener.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::SocketListenerEvent, Gio::Socket, Nil)) : GObject::SignalConnection #

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

[View source]
def connect(handler : Proc(Gio::SocketListener, Gio::SocketListenerEvent, Gio::Socket, Nil), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit(event : Gio::SocketListenerEvent, socket : Gio::Socket) : Nil #

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

The signal name


[View source]