GLib.IOChannel.prototype.get_flags
function get_flags(): GLib.IOFlags {
// Gjs wrapper for g_io_channel_get_flags()
}
Gets the current flags for a GLib.IOChannel, including read-only flags such as GLib.IOFlags.is_readable.
The values of the flags GLib.IOFlags.is_readable and GLib.IOFlags.is_writable are cached for internal use by the channel when it is created. If they should change at some later point (e.g. partial shutdown of a socket with the UNIX shutdown() function), the user should immediately call GLib.IOChannel.prototype.get_flags to update the internal values of these flags.
- Returns
the flags which are set on the channel