Gets the current flags for a IOChannel, including read-only flags such as g_io_flag_is_readable.
The values of the flags g_io_flag_is_readable and g_io_flag_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 get_flags to update the internal values of these flags.
the flags which are set on the channel