⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iochannels.sgml

📁 This GLib version 2.16.1. GLib is the low-level core library that forms the basis for projects such
💻 SGML
📖 第 1 页 / 共 2 页
字号:
<!-- ##### ENUM GIOChannelError ##### --><para>Error codes returned by #GIOChannel operations.</para>@G_IO_CHANNEL_ERROR_FBIG: File too large.@G_IO_CHANNEL_ERROR_INVAL: Invalid argument.@G_IO_CHANNEL_ERROR_IO: IO error.@G_IO_CHANNEL_ERROR_ISDIR: File is a directory.@G_IO_CHANNEL_ERROR_NOSPC: No space left on device.@G_IO_CHANNEL_ERROR_NXIO: No such device or address.@G_IO_CHANNEL_ERROR_OVERFLOW: Value too large for defined datatype.@G_IO_CHANNEL_ERROR_PIPE: Broken pipe.@G_IO_CHANNEL_ERROR_FAILED: Some other error.<!-- ##### MACRO G_IO_CHANNEL_ERROR ##### --><para>Error domain for #GIOChannel operations. Errors in this domain willbe from the #GIOChannelError enumeration. See #GError for information onerror domains.</para><!-- ##### FUNCTION g_io_channel_error_from_errno ##### --><para></para>@en: @Returns: <!-- ##### FUNCTION g_io_channel_ref ##### --><para>Increments the reference count of a #GIOChannel.</para>@channel: a #GIOChannel.@Returns:  the @channel that was passed in (since 2.6)<!-- ##### FUNCTION g_io_channel_unref ##### --><para>Decrements the reference count of a #GIOChannel.</para>@channel: a #GIOChannel.<!-- ##### FUNCTION g_io_create_watch ##### --><para>Creates a #GSource that's dispatched when @condition is met for the given@channel. For example, if condition is #G_IO_IN, the source will be dispatchedwhen there's data available for reading.  g_io_add_watch() is a simplerinterface to this same functionality, for the case where you want to add thesource to the default main loop at the default priority.</para><para>On Windows, polling a #GSource created to watch a channel for a socketputs the socket in non-blocking mode. This is a side-effect of theimplementation and unavoidable.</para>@channel: a #GIOChannel to watch@condition: conditions to watch for@Returns: a new #GSource<!-- ##### FUNCTION g_io_add_watch ##### --><para>Adds the #GIOChannel into the<link linkend="glib-The-Main-Event-Loop">main event loop</link>with the default priority.</para>@channel: a #GIOChannel@condition: the condition to watch for@func: the function to call when the condition is satisfied@user_data: user data to pass to @func@Returns: the event source id<!-- ##### FUNCTION g_io_add_watch_full ##### --><para>Adds the #GIOChannel into the<link linkend="glib-The-Main-Event-Loop">main event loop</link>with the given priority.</para>@channel: a #GIOChannel@priority: the priority of the #GIOChannel source@condition: the condition to watch for@func: the function to call when the condition is satisfied@user_data: user data to pass to @func@notify: the function to call when the source is removed@Returns: the event source id<!-- ##### ENUM GIOCondition ##### --><para>A bitwise combination representing a condition to watch for on an event source.</para>@G_IO_IN: There is data to read.@G_IO_OUT: Data can be written (without blocking).@G_IO_PRI: There is urgent data to read.@G_IO_ERR: Error condition.@G_IO_HUP: Hung up (the connection has been broken, usually for pipes            and sockets).@G_IO_NVAL: Invalid request. The file descriptor is not open.<!-- ##### USER_FUNCTION GIOFunc ##### --><para>Specifies the type of function passed to g_io_add_watch() org_io_add_watch_full(), which is called when the requested condition on a #GIOChannel is satisfied.</para>@source: the #GIOChannel event source@condition: the condition which has been satisfied@data: user data set in g_io_add_watch() or g_io_add_watch_full()@Returns: the function should return %FALSE if the event source   should be removed<!-- ##### STRUCT GIOFuncs ##### --><para>A table of functions used to handle different types of #GIOChannel in a generic way.</para>@io_read: @io_write: @io_seek: @io_close: @io_create_watch: @io_free: @io_set_flags: @io_get_flags: <!-- ##### FUNCTION g_io_channel_get_buffer_size ##### --><para></para>@channel: @Returns: <!-- ##### FUNCTION g_io_channel_set_buffer_size ##### --><para></para>@channel: @size: <!-- ##### FUNCTION g_io_channel_get_buffer_condition ##### --><para></para>@channel: @Returns: <!-- ##### FUNCTION g_io_channel_get_flags ##### --><para></para>@channel: @Returns: <!-- ##### FUNCTION g_io_channel_set_flags ##### --><para></para>@channel: @flags: @error: @Returns: <!-- ##### ENUM GIOFlags ##### --><para>Specifies properties of a #GIOChannel. Some of the flags can onlybe read with g_io_channel_get_flags(), but not changed withg_io_channel_set_flags(). </para>@G_IO_FLAG_APPEND: turns on append mode, corresponds to %O_APPEND   (see the documentation of the UNIX open() syscall).@G_IO_FLAG_NONBLOCK: turns on nonblocking mode, corresponds to   %O_NONBLOCK/%O_NDELAY (see the documentation of the UNIX open()   syscall).@G_IO_FLAG_IS_READABLE: indicates that the io channel is readable.   This flag can not be changed.@G_IO_FLAG_IS_WRITEABLE: indicates that the io channel is writable.   This flag can not be changed.@G_IO_FLAG_IS_SEEKABLE: indicates that the io channel is seekable,   i.e. that g_io_channel_seek_position() can be used on it.   This flag can not be changed.@G_IO_FLAG_MASK: @G_IO_FLAG_GET_MASK: @G_IO_FLAG_SET_MASK: <!-- ##### FUNCTION g_io_channel_get_line_term ##### --><para></para>@channel: @length: @Returns: <!-- ##### FUNCTION g_io_channel_set_line_term ##### --><para></para>@channel: @line_term: @length: <!-- ##### FUNCTION g_io_channel_get_buffered ##### --><para></para>@channel: @Returns: <!-- ##### FUNCTION g_io_channel_set_buffered ##### --><para></para>@channel: @buffered: <!-- ##### FUNCTION g_io_channel_get_encoding ##### --><para></para>@channel: @Returns: <!-- ##### FUNCTION g_io_channel_set_encoding ##### --><para></para>@channel: @encoding: @error: @Returns: <!-- ##### FUNCTION g_io_channel_get_close_on_unref ##### --><para></para>@channel: @Returns: <!-- ##### FUNCTION g_io_channel_set_close_on_unref ##### --><para></para>@channel: @do_close: <!-- ##### FUNCTION g_io_channel_read ##### --><para></para>@channel: @buf: @count: @bytes_read: @Returns: <!-- ##### ENUM GIOError ##### --><para>#GIOError is only used by the deprecated functions g_io_channel_read(),g_io_channel_write(), and g_io_channel_seek().</para>@G_IO_ERROR_NONE: no error@G_IO_ERROR_AGAIN: an EAGAIN error occurred@G_IO_ERROR_INVAL: an EINVAL error occurred@G_IO_ERROR_UNKNOWN: another error occurred<!-- ##### FUNCTION g_io_channel_write ##### --><para></para>@channel: @buf: @count: @bytes_written: @Returns: <!-- ##### FUNCTION g_io_channel_seek ##### --><para></para>@channel: @offset: @type.@type: @Returns: <!-- ##### FUNCTION g_io_channel_close ##### --><para></para>@channel: 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -