Sets the (writeable) flags in this to (flags & g_io_flag_set_mask).
flags
a IOChannel
the flags to set on the IO channel
the status of the operation.