Companion

object Companion

Functions

Link copied to clipboard
fun errorFromErrno(en: <Error class: unknown class>): IoChannelError

Converts an errno error number to a #GIOChannelError.

Link copied to clipboard
fun errorQuark(): <Error class: unknown class>
Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of IOChannel

Link copied to clipboard
fun newFile(filename: String, mode: String): <Error class: unknown class><IoChannel>

Open a file @filename as a #GIOChannel using mode @mode. This channel will be closed when the last reference to it is dropped, so there is no need to call g_io_channel_close() (though doing so will not cause problems, as long as no attempt is made to access the channel after it is closed).

Link copied to clipboard
fun unixNew(fd: <Error class: unknown class>): IoChannel

Creates a new #GIOChannel given a file descriptor. On UNIX systems this works for plain files, pipes, and sockets.