Gio.SocketListener.new
function new(): Gio.SocketListener {
// Gjs wrapper for g_socket_listener_new()
}
Creates a new Gio.SocketListener with no sockets to listen for. New listeners can be added with e.g. Gio.SocketListener.prototype.add_address or Gio.SocketListener.prototype.add_inet_port.
Since 2.22
- Returns
a new Gio.SocketListener.