pango 0.90.4-x86-mingw32 → 0.90.5-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/pango/extconf.rb +8 -0
- data/lib/1.8/pango.so +0 -0
- data/lib/1.9/pango.so +0 -0
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +35 -9
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
- data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/etc/pango/pango.modules +1 -1
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +18 -18
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gcredentials.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +42 -25
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gdbusaddress.h +58 -0
- data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +46 -0
- data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +562 -0
- data/vendor/local/include/glib-2.0/gio/gdbuserror.h +100 -0
- data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +286 -0
- data/vendor/local/include/glib-2.0/gio/gdbusmessage.h +149 -0
- data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +73 -0
- data/vendor/local/include/glib-2.0/gio/gdbusnameowning.h +112 -0
- data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +94 -0
- data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +167 -0
- data/vendor/local/include/glib-2.0/gio/gdbusserver.h +54 -0
- data/vendor/local/include/glib-2.0/gio/gdbusutils.h +44 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +1 -0
- data/vendor/local/include/glib-2.0/gio/gio.h +30 -9
- data/vendor/local/include/glib-2.0/gio/gioenums.h +526 -8
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +42 -0
- data/vendor/local/include/glib-2.0/gio/gioerror.h +4 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +36 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +1 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +4 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gpermission.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gproxy.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gproxyaddressenumerator.h +75 -0
- data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +96 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +258 -0
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +138 -0
- data/vendor/local/include/glib-2.0/gio/gsimplepermission.h +45 -0
- data/vendor/local/include/glib-2.0/gio/gsocket.h +18 -0
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +22 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +7 -1
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +5 -0
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +3 -0
- data/vendor/local/include/glib-2.0/glib-object.h +1 -0
- data/vendor/local/include/glib-2.0/glib.h +2 -0
- data/vendor/local/include/glib-2.0/glib/galloca.h +47 -0
- data/vendor/local/include/glib-2.0/glib/gatomic.h +25 -5
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +7 -7
- data/vendor/local/include/glib-2.0/glib/gbase64.h +22 -22
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +27 -3
- data/vendor/local/include/glib-2.0/glib/gcache.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +20 -20
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +4 -0
- data/vendor/local/include/glib-2.0/glib/gconvert.h +26 -2
- data/vendor/local/include/glib-2.0/glib/gdatetime.h +217 -0
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +16 -0
- data/vendor/local/include/glib-2.0/glib/gmacros.h +7 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +305 -78
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gmem.h +107 -1
- data/vendor/local/include/glib-2.0/glib/gnode.h +4 -2
- data/vendor/local/include/glib-2.0/glib/gpoll.h +27 -3
- data/vendor/local/include/glib-2.0/glib/gregex.h +228 -0
- data/vendor/local/include/glib-2.0/glib/grel.h +4 -0
- data/vendor/local/include/glib-2.0/glib/gstdio.h +27 -39
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +3 -1
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +19 -14
- data/vendor/local/include/glib-2.0/glib/gthread.h +0 -1
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +44 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +18 -1
- data/vendor/local/include/glib-2.0/glib/gutils.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gvariant.h +25 -1
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +29 -0
- data/vendor/local/include/glib-2.0/gobject/gbinding.h +136 -0
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +18 -6
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +37 -20
- data/vendor/local/include/glib-2.0/gobject/gobject.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +48 -21
- data/vendor/local/include/glib-2.0/gobject/gparam.h +9 -4
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +54 -0
- data/vendor/local/include/glib-2.0/gobject/gtype.h +129 -1
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +6 -1
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +17 -0
- data/vendor/local/include/pango-1.0/pango/pango-enum-types.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/lib/cairo.lib +0 -0
- data/vendor/local/lib/gio-2.0.def +345 -2
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +71 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +2 -2
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +21 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/intl.lib +0 -0
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/pango-1.0.lib +0 -0
- data/vendor/local/lib/pangocairo-1.0.lib +0 -0
- data/vendor/local/lib/pangoft2-1.0.lib +0 -0
- data/vendor/local/lib/pangowin32-1.0.lib +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +3 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +11 -0
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/pango.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangocairo.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangoft2.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangowin32.pc +2 -2
- data/vendor/local/manifest/{cairo-dev_1.10.0-1_win32.mft → cairo-dev_1.10.0-2_win32.mft} +6 -4
- data/vendor/local/manifest/cairo_1.10.0-2_win32.mft +7 -0
- data/vendor/local/manifest/{glib-dev_2.24.2-2_win32.mft → glib-dev_2.26.0-2_win32.mft} +87 -8
- data/vendor/local/manifest/{glib_2.24.2-2_win32.mft → glib_2.26.0-2_win32.mft} +3 -2
- data/vendor/local/manifest/{pango-dev_1.28.1-2_win32.mft → pango-dev_1.28.3-1_win32.mft} +5 -5
- data/vendor/local/manifest/{pango_1.28.1-2_win32.mft → pango_1.28.3-1_win32.mft} +2 -2
- data/vendor/local/share/aclocal/glib-gettext.m4 +2 -2
- data/vendor/local/share/doc/{cairo_1.10.0-1_win32 → cairo_1.10.0-2_win32}/COPYING +0 -0
- data/vendor/local/share/doc/{cairo_1.10.0-1_win32 → cairo_1.10.0-2_win32}/COPYING-LGPL-2.1 +0 -0
- data/vendor/local/share/doc/{cairo_1.10.0-1_win32 → cairo_1.10.0-2_win32}/COPYING-MPL-1.1 +0 -0
- data/vendor/local/share/doc/{glib-2.24.2 → glib-2.26.0}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.24.2 → glib-dev-2.26.0}/COPYING +0 -0
- data/vendor/local/share/doc/{pango-1.28.1 → pango-1.28.3}/COPYING +0 -0
- data/vendor/local/share/doc/{pango-dev-1.28.1 → pango-dev-1.28.3}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gdb/glib.py +1 -4
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +3 -1
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +60 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +179 -166
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +276 -74
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +35 -35
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +114 -119
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +43 -47
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +67 -67
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +41 -41
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +70 -35
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +254 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +6211 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +1833 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +618 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +2050 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +1124 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +373 -151
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +103 -107
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +158 -158
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +22 -22
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +935 -923
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +18 -13
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +71 -75
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +303 -275
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +32 -32
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +30 -30
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +31 -25
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +31 -25
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +58 -58
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +109 -109
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +26 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +72 -72
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +120 -120
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +90 -59
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +155 -155
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +76 -76
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +119 -39
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +100 -37
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +137 -131
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +560 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +312 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +348 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +116 -116
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +54 -54
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +2424 -0
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +609 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +362 -148
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +107 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +612 -326
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +470 -108
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +131 -46
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +48 -259
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +27 -26
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +123 -119
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +165 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +298 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +222 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +65 -57
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +59 -51
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +39 -39
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +246 -61
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +113 -113
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +67 -71
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +90 -18
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +56 -14
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +65 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +8 -12
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +21 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +1598 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +18 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +2412 -661
- data/vendor/local/share/gtk-doc/html/gio/async.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +50 -14
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +14 -9
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +122 -22
- data/vendor/local/share/gtk-doc/html/gio/{ch19.html → ch24.html} +8 -8
- data/vendor/local/share/gtk-doc/html/gio/{ch20.html → ch25.html} +19 -19
- data/vendor/local/share/gtk-doc/html/gio/{ch20s02.html → ch25s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch20s03.html → ch25s03.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +59 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +159 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +46 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +48 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +277 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +95 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +96 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +823 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +828 -0
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +33 -20
- data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +59 -0
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +243 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +316 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +1117 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +216 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +35 -35
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +58 -50
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +98 -88
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +15 -19
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +15 -19
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +908 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +37 -31
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +97 -16
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +50 -50
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +736 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +113 -122
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +666 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +26 -10
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +53 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +569 -68
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +692 -70
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +102 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +11 -5
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +137 -20
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +814 -96
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +32 -12
- data/vendor/local/share/gtk-doc/html/gio/networking.html +19 -7
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +112 -15
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +8 -5
- data/vendor/local/share/gtk-doc/html/gio/settings.html +38 -0
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/style.css +8 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/types.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/utils.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +77 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -7
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +5 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +359 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +10 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +82 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +393 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +52 -52
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +51 -51
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +75 -74
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +59 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +87 -85
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +39 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +69 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +130 -223
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +114 -108
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +87 -84
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +61 -61
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +96 -96
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +30 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +33 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +98 -56
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +2201 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +239 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +736 -256
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +140 -91
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +59 -59
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +65 -65
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +91 -28
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +72 -72
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +257 -73
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +27 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +50 -50
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +70 -66
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +14 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +44 -44
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +108 -63
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +151 -91
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +132 -103
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +83 -81
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +34 -44
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +442 -345
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +40 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +72 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +46 -46
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +35 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +130 -129
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +30 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +245 -232
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +104 -103
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +171 -85
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +422 -323
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +24 -24
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +135 -135
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +18 -18
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +13 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +103 -17
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +189 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +119 -16
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +24 -24
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +32 -32
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +53 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -7
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +94 -272
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +43 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +10 -4
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +131 -32
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +174 -59
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +190 -73
- data/vendor/local/share/gtk-doc/html/glib/index.html +13 -5
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +133 -4
- data/vendor/local/share/gtk-doc/html/glib/style.css +8 -0
- data/vendor/local/share/gtk-doc/html/glib/tools.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +803 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +21 -21
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +6 -5
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +201 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +148 -4
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +28 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +29 -17
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +45 -34
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +130 -73
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +43 -43
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +83 -73
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +35 -35
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +71 -71
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +558 -245
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +358 -92
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +391 -158
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +47 -44
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +42 -12
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +48 -9
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +53 -9
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +15 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +53 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +7 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/style.css +8 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +44 -50
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +45 -51
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +44 -61
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +89 -101
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +173 -171
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/index-1.10.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.12.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.14.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.16.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.18.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.2.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.20.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.22.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.24.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.26.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.28.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.4.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.6.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/index-1.8.html +22 -43
- data/vendor/local/share/gtk-doc/html/pango/index-all.html +70 -91
- data/vendor/local/share/gtk-doc/html/pango/index-deprecated.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +31 -30
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/pango-ATSUI-Fonts.html +20 -39
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +73 -88
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +405 -320
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +85 -97
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +69 -84
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +695 -645
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +225 -228
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +523 -494
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +819 -742
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +203 -204
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +58 -75
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +422 -405
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +144 -142
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +120 -130
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +618 -576
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +397 -384
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +44 -58
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +73 -84
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +220 -217
- data/vendor/local/share/gtk-doc/html/pango/pango-X-Fonts-and-Rendering.html +303 -302
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +293 -292
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/pango-pango-renderer.html +1009 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +7 -28
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp +68 -68
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +72 -72
- data/vendor/local/share/gtk-doc/html/pango/pango.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/style.css +21 -13
- data/vendor/local/share/gtk-doc/html/pango/tools.html +3 -24
- data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +9 -4
- data/vendor/local/share/man/man1/glib-mkenums.1 +17 -5
- data/vendor/local/share/man/man1/gobject-query.1 +4 -4
- data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -1
- data/vendor/local/src/tml/packaging/{cairo_1.10.0-1_win32.log → cairo_1.10.0-2_win32.log} +175 -174
- data/vendor/local/src/tml/packaging/{cairo_1.10.0-1_win32.sh → cairo_1.10.0-2_win32.sh} +11 -3
- data/vendor/local/src/tml/packaging/{glib_2.24.2-2_win32.log → glib_2.26.0-2_win32.log} +1102 -837
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.sh +64 -0
- data/vendor/local/src/tml/packaging/{pango_1.28.1-2_win32.log → pango_1.28.3-1_win32.log} +293 -413
- data/vendor/local/src/tml/packaging/pango_1.28.3-1_win32.sh +56 -0
- metadata +1471 -1389
- data/ext/pango/Makefile +0 -172
- data/ext/pango/rbpangoversion.h +0 -24
- data/vendor/local/manifest/cairo_1.10.0-1_win32.mft +0 -5
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +0 -1002
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.sh +0 -290
- data/vendor/local/src/tml/packaging/pango_1.28.1-2_win32.sh +0 -579
@@ -0,0 +1,107 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>GSimplePermission</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
+
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
|
+
<link rel="up" href="permissions.html" title="Permissions">
|
9
|
+
<link rel="prev" href="GPermission.html" title="GPermission">
|
10
|
+
<link rel="next" href="extending.html" title="Extending GIO">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
+
<tr valign="middle">
|
17
|
+
<td><a accesskey="p" href="GPermission.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="permissions.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
+
<th width="100%" align="center">GIO Reference Manual</th>
|
21
|
+
<td><a accesskey="n" href="extending.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
+
</tr>
|
23
|
+
<tr><td colspan="5" class="shortcuts">
|
24
|
+
<a href="#GSimplePermission.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#GSimplePermission.description" class="shortcut">Description</a>
|
27
|
+
|
|
28
|
+
<a href="#GSimplePermission.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
+
</td></tr>
|
30
|
+
</table>
|
31
|
+
<div class="refentry">
|
32
|
+
<a name="GSimplePermission"></a><div class="titlepage"></div>
|
33
|
+
<div class="refnamediv"><table width="100%"><tr>
|
34
|
+
<td valign="top">
|
35
|
+
<h2><span class="refentrytitle"><a name="GSimplePermission.top_of_page"></a>GSimplePermission</span></h2>
|
36
|
+
<p>GSimplePermission — a GPermission that doesn't change value</p>
|
37
|
+
</td>
|
38
|
+
<td valign="top" align="right"></td>
|
39
|
+
</tr></table></div>
|
40
|
+
<div class="refsynopsisdiv">
|
41
|
+
<a name="GSimplePermission.synopsis"></a><h2>Synopsis</h2>
|
42
|
+
<pre class="synopsis"> <a class="link" href="GSimplePermission.html#GSimplePermission-struct" title="GSimplePermission">GSimplePermission</a>;
|
43
|
+
<a class="link" href="GPermission.html" title="GPermission"><span class="returnvalue">GPermission</span></a> * <a class="link" href="GSimplePermission.html#g-simple-permission-new" title="g_simple_permission_new ()">g_simple_permission_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> allowed</code></em>);
|
44
|
+
</pre>
|
45
|
+
</div>
|
46
|
+
<div class="refsect1">
|
47
|
+
<a name="GSimplePermission.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
48
|
+
<pre class="synopsis">
|
49
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
50
|
+
+----<a class="link" href="GPermission.html" title="GPermission">GPermission</a>
|
51
|
+
+----GSimplePermission
|
52
|
+
</pre>
|
53
|
+
</div>
|
54
|
+
<div class="refsect1">
|
55
|
+
<a name="GSimplePermission.description"></a><h2>Description</h2>
|
56
|
+
<p>
|
57
|
+
<a class="link" href="GSimplePermission.html" title="GSimplePermission"><span class="type">GSimplePermission</span></a> is a trivial implementation of <a class="link" href="GPermission.html" title="GPermission"><span class="type">GPermission</span></a> that
|
58
|
+
represents a permission that is either always or never allowed. The
|
59
|
+
value is given at constuction and doesn't change.
|
60
|
+
</p>
|
61
|
+
<p>
|
62
|
+
Calling request or release will result in errors.
|
63
|
+
</p>
|
64
|
+
</div>
|
65
|
+
<div class="refsect1">
|
66
|
+
<a name="GSimplePermission.details"></a><h2>Details</h2>
|
67
|
+
<div class="refsect2">
|
68
|
+
<a name="GSimplePermission-struct"></a><h3>GSimplePermission</h3>
|
69
|
+
<pre class="programlisting">typedef struct _GSimplePermission GSimplePermission;</pre>
|
70
|
+
<p>
|
71
|
+
<a class="link" href="GSimplePermission.html" title="GSimplePermission"><span class="type">GSimplePermission</span></a> is an opaque data structure. There are no methods
|
72
|
+
except for those defined by <a class="link" href="GPermission.html" title="GPermission"><span class="type">GPermission</span></a>.
|
73
|
+
</p>
|
74
|
+
</div>
|
75
|
+
<hr>
|
76
|
+
<div class="refsect2">
|
77
|
+
<a name="g-simple-permission-new"></a><h3>g_simple_permission_new ()</h3>
|
78
|
+
<pre class="programlisting"><a class="link" href="GPermission.html" title="GPermission"><span class="returnvalue">GPermission</span></a> * g_simple_permission_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> allowed</code></em>);</pre>
|
79
|
+
<p>
|
80
|
+
Creates a new <a class="link" href="GPermission.html" title="GPermission"><span class="type">GPermission</span></a> instance that represents an action that is
|
81
|
+
either always or never allowed.
|
82
|
+
</p>
|
83
|
+
<div class="variablelist"><table border="0">
|
84
|
+
<col align="left" valign="top">
|
85
|
+
<tbody>
|
86
|
+
<tr>
|
87
|
+
<td><p><span class="term"><em class="parameter"><code>allowed</code></em> :</span></p></td>
|
88
|
+
<td>
|
89
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the action is allowed
|
90
|
+
</td>
|
91
|
+
</tr>
|
92
|
+
<tr>
|
93
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
94
|
+
<td>the <a class="link" href="GSimplePermission.html" title="GSimplePermission"><span class="type">GSimplePermission</span></a>, as a <a class="link" href="GPermission.html" title="GPermission"><span class="type">GPermission</span></a>
|
95
|
+
</td>
|
96
|
+
</tr>
|
97
|
+
</tbody>
|
98
|
+
</table></div>
|
99
|
+
<p class="since">Since 2.26</p>
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
<div class="footer">
|
104
|
+
<hr>
|
105
|
+
Generated by GTK-Doc V1.15.1</div>
|
106
|
+
</body>
|
107
|
+
</html>
|
@@ -5,10 +5,10 @@
|
|
5
5
|
<title>GSocket</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
|
-
<link rel="up" href="networking.html" title="Lowlevel
|
9
|
-
<link rel="prev" href="networking.html" title="Lowlevel
|
8
|
+
<link rel="up" href="networking.html" title="Lowlevel network support">
|
9
|
+
<link rel="prev" href="networking.html" title="Lowlevel network support">
|
10
10
|
<link rel="next" href="GInetAddress.html" title="GInetAddress">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<a href="#GSocket.properties" class="shortcut">Properties</a>
|
33
33
|
</td></tr>
|
34
34
|
</table>
|
35
|
-
<div class="refentry"
|
35
|
+
<div class="refentry">
|
36
36
|
<a name="GSocket"></a><div class="titlepage"></div>
|
37
37
|
<div class="refnamediv"><table width="100%"><tr>
|
38
38
|
<td valign="top">
|
@@ -41,146 +41,164 @@
|
|
41
41
|
</td>
|
42
42
|
<td valign="top" align="right"></td>
|
43
43
|
</tr></table></div>
|
44
|
-
<div class="refsynopsisdiv"
|
44
|
+
<div class="refsynopsisdiv">
|
45
45
|
<a name="GSocket.synopsis"></a><h2>Synopsis</h2>
|
46
46
|
<pre class="synopsis">
|
47
47
|
#include <gio/gio.h>
|
48
48
|
|
49
49
|
<a class="link" href="GSocket.html#GSocket-struct" title="GSocket">GSocket</a>;
|
50
|
-
<a href="/
|
51
|
-
<em class="parameter"><code><a href="/
|
52
|
-
<em class="parameter"><code><a href="/
|
50
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="GSocket.html#GSocketSourceFunc" title="GSocketSourceFunc ()">*GSocketSourceFunc</a>) (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
51
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
52
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
|
53
53
|
enum <a class="link" href="GSocket.html#GSocketType" title="enum GSocketType">GSocketType</a>;
|
54
54
|
enum <a class="link" href="GSocket.html#GSocketProtocol" title="enum GSocketProtocol">GSocketProtocol</a>;
|
55
55
|
enum <a class="link" href="GSocket.html#GSocketMsgFlags" title="enum GSocketMsgFlags">GSocketMsgFlags</a>;
|
56
56
|
<a class="link" href="GSocket.html#GInputVector" title="GInputVector">GInputVector</a>;
|
57
57
|
<a class="link" href="GSocket.html#GOutputVector" title="GOutputVector">GOutputVector</a>;
|
58
|
-
<a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> *
|
58
|
+
<a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> * <a class="link" href="GSocket.html#g-socket-new" title="g_socket_new ()">g_socket_new</a> (<em class="parameter"><code><a class="link" href="GSocketAddress.html#GSocketFamily" title="enum GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>,
|
59
59
|
<em class="parameter"><code><a class="link" href="GSocket.html#GSocketType" title="enum GSocketType"><span class="type">GSocketType</span></a> type</code></em>,
|
60
60
|
<em class="parameter"><code><a class="link" href="GSocket.html#GSocketProtocol" title="enum GSocketProtocol"><span class="type">GSocketProtocol</span></a> protocol</code></em>,
|
61
|
-
<em class="parameter"><code><a href="/
|
62
|
-
<a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> *
|
63
|
-
<em class="parameter"><code><a href="/
|
64
|
-
<a href="/
|
61
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
62
|
+
<a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> * <a class="link" href="GSocket.html#g-socket-new-from-fd" title="g_socket_new_from_fd ()">g_socket_new_from_fd</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> fd</code></em>,
|
63
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
64
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-bind" title="g_socket_bind ()">g_socket_bind</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
65
65
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> *address</code></em>,
|
66
|
-
<em class="parameter"><code><a href="/
|
67
|
-
<em class="parameter"><code><a href="/
|
68
|
-
<a href="/
|
69
|
-
<em class="parameter"><code><a href="/
|
70
|
-
<a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> *
|
66
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> allow_reuse</code></em>,
|
67
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
68
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-listen" title="g_socket_listen ()">g_socket_listen</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
69
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
70
|
+
<a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> * <a class="link" href="GSocket.html#g-socket-accept" title="g_socket_accept ()">g_socket_accept</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
71
71
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
72
|
-
<em class="parameter"><code><a href="/
|
73
|
-
<a href="/
|
72
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
73
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-connect" title="g_socket_connect ()">g_socket_connect</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
74
74
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> *address</code></em>,
|
75
75
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
76
|
-
<em class="parameter"><code><a href="/
|
77
|
-
<a href="/
|
78
|
-
<em class="parameter"><code><a href="/
|
79
|
-
<a href="/
|
80
|
-
<em class="parameter"><code><a href="/
|
81
|
-
<em class="parameter"><code><a href="/
|
76
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
77
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-check-connect-result" title="g_socket_check_connect_result ()">g_socket_check_connect_result</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
78
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
79
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> <a class="link" href="GSocket.html#g-socket-receive" title="g_socket_receive ()">g_socket_receive</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
80
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
81
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
82
82
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
83
|
-
<em class="parameter"><code><a href="/
|
84
|
-
<a href="/
|
83
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
84
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> <a class="link" href="GSocket.html#g-socket-receive-from" title="g_socket_receive_from ()">g_socket_receive_from</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
85
85
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> **address</code></em>,
|
86
|
-
<em class="parameter"><code><a href="/
|
87
|
-
<em class="parameter"><code><a href="/
|
86
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
87
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
88
88
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
89
|
-
<em class="parameter"><code><a href="/
|
90
|
-
<a href="/
|
89
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
90
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> <a class="link" href="GSocket.html#g-socket-receive-message" title="g_socket_receive_message ()">g_socket_receive_message</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
91
91
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> **address</code></em>,
|
92
92
|
<em class="parameter"><code><a class="link" href="GSocket.html#GInputVector" title="GInputVector"><span class="type">GInputVector</span></a> *vectors</code></em>,
|
93
|
-
<em class="parameter"><code><a href="/
|
93
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num_vectors</code></em>,
|
94
94
|
<em class="parameter"><code><a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> ***messages</code></em>,
|
95
|
-
<em class="parameter"><code><a href="/
|
96
|
-
<em class="parameter"><code><a href="/
|
95
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *num_messages</code></em>,
|
96
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *flags</code></em>,
|
97
97
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
98
|
-
<em class="parameter"><code><a href="/
|
99
|
-
<a href="/
|
100
|
-
<em class="parameter"><code
|
101
|
-
<em class="parameter"><code><a href="/
|
98
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
99
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> <a class="link" href="GSocket.html#g-socket-receive-with-blocking" title="g_socket_receive_with_blocking ()">g_socket_receive_with_blocking</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
100
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
101
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
102
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> blocking</code></em>,
|
102
103
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
103
|
-
<em class="parameter"><code><a href="/
|
104
|
-
<a href="/
|
104
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
105
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> <a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()">g_socket_send</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
106
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
107
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
108
|
+
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
109
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
110
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> <a class="link" href="GSocket.html#g-socket-send-to" title="g_socket_send_to ()">g_socket_send_to</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
105
111
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> *address</code></em>,
|
106
|
-
<em class="parameter"><code>const <a href="/
|
107
|
-
<em class="parameter"><code><a href="/
|
112
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
113
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
108
114
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
109
|
-
<em class="parameter"><code><a href="/
|
110
|
-
<a href="/
|
115
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
116
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> <a class="link" href="GSocket.html#g-socket-send-message" title="g_socket_send_message ()">g_socket_send_message</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
111
117
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> *address</code></em>,
|
112
118
|
<em class="parameter"><code><a class="link" href="GSocket.html#GOutputVector" title="GOutputVector"><span class="type">GOutputVector</span></a> *vectors</code></em>,
|
113
|
-
<em class="parameter"><code><a href="/
|
119
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num_vectors</code></em>,
|
114
120
|
<em class="parameter"><code><a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> **messages</code></em>,
|
115
|
-
<em class="parameter"><code><a href="/
|
116
|
-
<em class="parameter"><code><a href="/
|
121
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num_messages</code></em>,
|
122
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> flags</code></em>,
|
123
|
+
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
124
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
125
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> <a class="link" href="GSocket.html#g-socket-send-with-blocking" title="g_socket_send_with_blocking ()">g_socket_send_with_blocking</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
126
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
127
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
128
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> blocking</code></em>,
|
117
129
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
118
|
-
<em class="parameter"><code><a href="/
|
119
|
-
<a href="/
|
120
|
-
<em class="parameter"><code><a href="/
|
121
|
-
<a href="/
|
122
|
-
<a href="/
|
123
|
-
<em class="parameter"><code><a href="/
|
124
|
-
<em class="parameter"><code><a href="/
|
125
|
-
<em class="parameter"><code><a href="/
|
126
|
-
<a href="/
|
127
|
-
<a href="/
|
128
|
-
<em class="parameter"><code><a href="/
|
130
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
131
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-close" title="g_socket_close ()">g_socket_close</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
132
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
133
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-is-closed" title="g_socket_is_closed ()">g_socket_is_closed</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
134
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-shutdown" title="g_socket_shutdown ()">g_socket_shutdown</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
135
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> shutdown_read</code></em>,
|
136
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> shutdown_write</code></em>,
|
137
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
138
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-is-connected" title="g_socket_is_connected ()">g_socket_is_connected</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
139
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GSource"><span class="returnvalue">GSource</span></a> * <a class="link" href="GSocket.html#g-socket-create-source" title="g_socket_create_source ()">g_socket_create_source</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
140
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
129
141
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>);
|
130
|
-
<a href="/
|
131
|
-
<em class="parameter"><code><a href="/
|
132
|
-
<a href="/
|
133
|
-
<em class="parameter"><code><a href="/
|
142
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="returnvalue">GIOCondition</span></a> <a class="link" href="GSocket.html#g-socket-condition-check" title="g_socket_condition_check ()">g_socket_condition_check</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
143
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>);
|
144
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-condition-wait" title="g_socket_condition_wait ()">g_socket_condition_wait</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
145
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
134
146
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
135
|
-
<em class="parameter"><code><a href="/
|
147
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
136
148
|
<span class="returnvalue">void</span> <a class="link" href="GSocket.html#g-socket-set-listen-backlog" title="g_socket_set_listen_backlog ()">g_socket_set_listen_backlog</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
137
|
-
<em class="parameter"><code><a href="/
|
138
|
-
<a href="/
|
139
|
-
<a href="/
|
149
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> backlog</code></em>);
|
150
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GSocket.html#g-socket-get-listen-backlog" title="g_socket_get_listen_backlog ()">g_socket_get_listen_backlog</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
151
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-get-blocking" title="g_socket_get_blocking ()">g_socket_get_blocking</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
140
152
|
<span class="returnvalue">void</span> <a class="link" href="GSocket.html#g-socket-set-blocking" title="g_socket_set_blocking ()">g_socket_set_blocking</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
141
|
-
<em class="parameter"><code><a href="/
|
142
|
-
<a href="/
|
153
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> blocking</code></em>);
|
154
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-get-keepalive" title="g_socket_get_keepalive ()">g_socket_get_keepalive</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
143
155
|
<span class="returnvalue">void</span> <a class="link" href="GSocket.html#g-socket-set-keepalive" title="g_socket_set_keepalive ()">g_socket_set_keepalive</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
144
|
-
<em class="parameter"><code><a href="/
|
156
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> keepalive</code></em>);
|
157
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="GSocket.html#g-socket-get-timeout" title="g_socket_get_timeout ()">g_socket_get_timeout</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
158
|
+
<span class="returnvalue">void</span> <a class="link" href="GSocket.html#g-socket-set-timeout" title="g_socket_set_timeout ()">g_socket_set_timeout</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
159
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>);
|
145
160
|
<a class="link" href="GSocketAddress.html#GSocketFamily" title="enum GSocketFamily"><span class="returnvalue">GSocketFamily</span></a> <a class="link" href="GSocket.html#g-socket-get-family" title="g_socket_get_family ()">g_socket_get_family</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
146
161
|
<span class="returnvalue">int</span> <a class="link" href="GSocket.html#g-socket-get-fd" title="g_socket_get_fd ()">g_socket_get_fd</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
147
|
-
<a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="returnvalue">GSocketAddress</span></a> *
|
148
|
-
<em class="parameter"><code><a href="/
|
162
|
+
<a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="returnvalue">GSocketAddress</span></a> * <a class="link" href="GSocket.html#g-socket-get-local-address" title="g_socket_get_local_address ()">g_socket_get_local_address</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
163
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
149
164
|
<a class="link" href="GSocket.html#GSocketProtocol" title="enum GSocketProtocol"><span class="returnvalue">GSocketProtocol</span></a> <a class="link" href="GSocket.html#g-socket-get-protocol" title="g_socket_get_protocol ()">g_socket_get_protocol</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
150
|
-
<a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="returnvalue">GSocketAddress</span></a> *
|
151
|
-
<em class="parameter"><code><a href="/
|
165
|
+
<a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="returnvalue">GSocketAddress</span></a> * <a class="link" href="GSocket.html#g-socket-get-remote-address" title="g_socket_get_remote_address ()">g_socket_get_remote_address</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
166
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
152
167
|
<a class="link" href="GSocket.html#GSocketType" title="enum GSocketType"><span class="returnvalue">GSocketType</span></a> <a class="link" href="GSocket.html#g-socket-get-socket-type" title="g_socket_get_socket_type ()">g_socket_get_socket_type</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
153
|
-
<a href="/
|
168
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GSocket.html#g-socket-speaks-ipv4" title="g_socket_speaks_ipv4 ()">g_socket_speaks_ipv4</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);
|
169
|
+
<a class="link" href="GCredentials.html" title="GCredentials"><span class="returnvalue">GCredentials</span></a> * <a class="link" href="GSocket.html#g-socket-get-credentials" title="g_socket_get_credentials ()">g_socket_get_credentials</a> (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
170
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
154
171
|
</pre>
|
155
172
|
</div>
|
156
|
-
<div class="refsect1"
|
173
|
+
<div class="refsect1">
|
157
174
|
<a name="GSocket.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
158
175
|
<pre class="synopsis">
|
159
|
-
<a href="/
|
176
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
160
177
|
+----GSocket
|
161
178
|
</pre>
|
162
179
|
</div>
|
163
|
-
<div class="refsect1"
|
180
|
+
<div class="refsect1">
|
164
181
|
<a name="GSocket.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
165
182
|
<p>
|
166
183
|
GSocket implements
|
167
184
|
<a class="link" href="GInitable.html" title="GInitable">GInitable</a>.</p>
|
168
185
|
</div>
|
169
|
-
<div class="refsect1"
|
186
|
+
<div class="refsect1">
|
170
187
|
<a name="GSocket.properties"></a><h2>Properties</h2>
|
171
188
|
<pre class="synopsis">
|
172
|
-
"<a class="link" href="GSocket.html#GSocket--blocking" title='The "blocking" property'>blocking</a>" <a href="/
|
189
|
+
"<a class="link" href="GSocket.html#GSocket--blocking" title='The "blocking" property'>blocking</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
|
173
190
|
"<a class="link" href="GSocket.html#GSocket--family" title='The "family" property'>family</a>" <a class="link" href="GSocketAddress.html#GSocketFamily" title="enum GSocketFamily"><span class="type">GSocketFamily</span></a> : Read / Write / Construct Only
|
174
|
-
"<a class="link" href="GSocket.html#GSocket--fd" title='The "fd" property'>fd</a>" <a href="/
|
175
|
-
"<a class="link" href="GSocket.html#GSocket--keepalive" title='The "keepalive" property'>keepalive</a>" <a href="/
|
176
|
-
"<a class="link" href="GSocket.html#GSocket--listen-backlog" title='The "listen-backlog" property'>listen-backlog</a>" <a href="/
|
191
|
+
"<a class="link" href="GSocket.html#GSocket--fd" title='The "fd" property'>fd</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
|
192
|
+
"<a class="link" href="GSocket.html#GSocket--keepalive" title='The "keepalive" property'>keepalive</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
|
193
|
+
"<a class="link" href="GSocket.html#GSocket--listen-backlog" title='The "listen-backlog" property'>listen-backlog</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
|
177
194
|
"<a class="link" href="GSocket.html#GSocket--local-address" title='The "local-address" property'>local-address</a>" <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a>* : Read
|
178
195
|
"<a class="link" href="GSocket.html#GSocket--protocol" title='The "protocol" property'>protocol</a>" <a class="link" href="GSocket.html#GSocketProtocol" title="enum GSocketProtocol"><span class="type">GSocketProtocol</span></a> : Read / Write / Construct Only
|
179
196
|
"<a class="link" href="GSocket.html#GSocket--remote-address" title='The "remote-address" property'>remote-address</a>" <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a>* : Read
|
197
|
+
"<a class="link" href="GSocket.html#GSocket--timeout" title='The "timeout" property'>timeout</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
|
180
198
|
"<a class="link" href="GSocket.html#GSocket--type" title='The "type" property'>type</a>" <a class="link" href="GSocket.html#GSocketType" title="enum GSocketType"><span class="type">GSocketType</span></a> : Read / Write / Construct Only
|
181
199
|
</pre>
|
182
200
|
</div>
|
183
|
-
<div class="refsect1"
|
201
|
+
<div class="refsect1">
|
184
202
|
<a name="GSocket.description"></a><h2>Description</h2>
|
185
203
|
<p>
|
186
204
|
A <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> is a low-level networking primitive. It is a more or less
|
@@ -196,10 +214,10 @@ direct use of <a class="link" href="GSocket.html" title="GSocket"><span class="t
|
|
196
214
|
</p>
|
197
215
|
<p>
|
198
216
|
<a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> implements the <a class="link" href="GInitable.html" title="GInitable"><span class="type">GInitable</span></a> interface, so if it is manually constructed
|
199
|
-
by e.g. <a href="/
|
217
|
+
by e.g. <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-new"><code class="function">g_object_new()</code></a> you must call <a class="link" href="GInitable.html#g-initable-init" title="g_initable_init ()"><code class="function">g_initable_init()</code></a> and check the
|
200
218
|
results before using the object. This is done automatically in
|
201
219
|
<a class="link" href="GSocket.html#g-socket-new" title="g_socket_new ()"><code class="function">g_socket_new()</code></a> and <a class="link" href="GSocket.html#g-socket-new-from-fd" title="g_socket_new_from_fd ()"><code class="function">g_socket_new_from_fd()</code></a>, so these functions can return
|
202
|
-
<a href="/
|
220
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
203
221
|
</p>
|
204
222
|
<p>
|
205
223
|
Sockets operate in two general modes, blocking or non-blocking. When
|
@@ -208,7 +226,7 @@ is finished or there is an error. In non-blocking mode all calls that
|
|
208
226
|
would block return immediately with a <a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> error.
|
209
227
|
To know when a call would successfully run you can call <a class="link" href="GSocket.html#g-socket-condition-check" title="g_socket_condition_check ()"><code class="function">g_socket_condition_check()</code></a>,
|
210
228
|
or <a class="link" href="GSocket.html#g-socket-condition-wait" title="g_socket_condition_wait ()"><code class="function">g_socket_condition_wait()</code></a>. You can also use <a class="link" href="GSocket.html#g-socket-create-source" title="g_socket_create_source ()"><code class="function">g_socket_create_source()</code></a> and
|
211
|
-
attach it to a <a href="/
|
229
|
+
attach it to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainContext"><span class="type">GMainContext</span></a> to get callbacks when I/O is possible.
|
212
230
|
Note that all sockets are always set to non blocking mode in the system, and
|
213
231
|
blocking mode is emulated in GSocket.
|
214
232
|
</p>
|
@@ -238,9 +256,9 @@ account the fact that your program will not automatically be killed
|
|
238
256
|
if it tries to write to <code class="literal">stdout</code> after it has been closed.
|
239
257
|
</p>
|
240
258
|
</div>
|
241
|
-
<div class="refsect1"
|
259
|
+
<div class="refsect1">
|
242
260
|
<a name="GSocket.details"></a><h2>Details</h2>
|
243
|
-
<div class="refsect2"
|
261
|
+
<div class="refsect2">
|
244
262
|
<a name="GSocket-struct"></a><h3>GSocket</h3>
|
245
263
|
<pre class="programlisting">typedef struct _GSocket GSocket;</pre>
|
246
264
|
<p>
|
@@ -249,13 +267,13 @@ A lowlevel network socket object.
|
|
249
267
|
<p class="since">Since 2.22</p>
|
250
268
|
</div>
|
251
269
|
<hr>
|
252
|
-
<div class="refsect2"
|
270
|
+
<div class="refsect2">
|
253
271
|
<a name="GSocketSourceFunc"></a><h3>GSocketSourceFunc ()</h3>
|
254
|
-
<pre class="programlisting"><a href="/
|
255
|
-
<em class="parameter"><code><a href="/
|
256
|
-
<em class="parameter"><code><a href="/
|
272
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (*GSocketSourceFunc) (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
273
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
274
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
257
275
|
<p>
|
258
|
-
This is the function type of the callback used for the <a href="/
|
276
|
+
This is the function type of the callback used for the <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GSource"><span class="type">GSource</span></a>
|
259
277
|
returned by <a class="link" href="GSocket.html#g-socket-create-source" title="g_socket_create_source ()"><code class="function">g_socket_create_source()</code></a>.
|
260
278
|
</p>
|
261
279
|
<div class="variablelist"><table border="0">
|
@@ -278,7 +296,7 @@ returned by <a class="link" href="GSocket.html#g-socket-create-source" title="g_
|
|
278
296
|
</tr>
|
279
297
|
<tr>
|
280
298
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
281
|
-
<td> it should return <a href="/
|
299
|
+
<td> it should return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the source should be removed.
|
282
300
|
|
283
301
|
</td>
|
284
302
|
</tr>
|
@@ -287,7 +305,7 @@ returned by <a class="link" href="GSocket.html#g-socket-create-source" title="g_
|
|
287
305
|
<p class="since">Since 2.22</p>
|
288
306
|
</div>
|
289
307
|
<hr>
|
290
|
-
<div class="refsect2"
|
308
|
+
<div class="refsect2">
|
291
309
|
<a name="GSocketType"></a><h3>enum GSocketType</h3>
|
292
310
|
<pre class="programlisting">typedef enum
|
293
311
|
{
|
@@ -331,7 +349,7 @@ all the socket types.
|
|
331
349
|
<p class="since">Since 2.22</p>
|
332
350
|
</div>
|
333
351
|
<hr>
|
334
|
-
<div class="refsect2"
|
352
|
+
<div class="refsect2">
|
335
353
|
<a name="GSocketProtocol"></a><h3>enum GSocketProtocol</h3>
|
336
354
|
<pre class="programlisting">typedef enum {
|
337
355
|
G_SOCKET_PROTOCOL_UNKNOWN = -1,
|
@@ -384,7 +402,7 @@ use protocols not listed here.
|
|
384
402
|
<p class="since">Since 2.22</p>
|
385
403
|
</div>
|
386
404
|
<hr>
|
387
|
-
<div class="refsect2"
|
405
|
+
<div class="refsect2">
|
388
406
|
<a name="GSocketMsgFlags"></a><h3>enum GSocketMsgFlags</h3>
|
389
407
|
<pre class="programlisting">typedef enum
|
390
408
|
{
|
@@ -431,7 +449,7 @@ the right system header and pass in the flag.
|
|
431
449
|
<p class="since">Since 2.22</p>
|
432
450
|
</div>
|
433
451
|
<hr>
|
434
|
-
<div class="refsect2"
|
452
|
+
<div class="refsect2">
|
435
453
|
<a name="GInputVector"></a><h3>GInputVector</h3>
|
436
454
|
<pre class="programlisting">typedef struct {
|
437
455
|
gpointer buffer;
|
@@ -448,12 +466,12 @@ first buffer, switching to the next as needed.
|
|
448
466
|
<col align="left" valign="top">
|
449
467
|
<tbody>
|
450
468
|
<tr>
|
451
|
-
<td><p><span class="term"><a href="/
|
469
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="GInputVector.buffer"></a>buffer</code></em>;</span></p></td>
|
452
470
|
<td>Pointer to a buffer where data will be written.
|
453
471
|
</td>
|
454
472
|
</tr>
|
455
473
|
<tr>
|
456
|
-
<td><p><span class="term"><a href="/
|
474
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> <em class="structfield"><code><a name="GInputVector.size"></a>size</code></em>;</span></p></td>
|
457
475
|
<td>the available size in <em class="parameter"><code>buffer</code></em>.
|
458
476
|
</td>
|
459
477
|
</tr>
|
@@ -462,7 +480,7 @@ first buffer, switching to the next as needed.
|
|
462
480
|
<p class="since">Since 2.22</p>
|
463
481
|
</div>
|
464
482
|
<hr>
|
465
|
-
<div class="refsect2"
|
483
|
+
<div class="refsect2">
|
466
484
|
<a name="GOutputVector"></a><h3>GOutputVector</h3>
|
467
485
|
<pre class="programlisting">typedef struct {
|
468
486
|
gconstpointer buffer;
|
@@ -479,12 +497,12 @@ one buffer.
|
|
479
497
|
<col align="left" valign="top">
|
480
498
|
<tbody>
|
481
499
|
<tr>
|
482
|
-
<td><p><span class="term"><a href="/
|
500
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> <em class="structfield"><code><a name="GOutputVector.buffer"></a>buffer</code></em>;</span></p></td>
|
483
501
|
<td>Pointer to a buffer of data to read.
|
484
502
|
</td>
|
485
503
|
</tr>
|
486
504
|
<tr>
|
487
|
-
<td><p><span class="term"><a href="/
|
505
|
+
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> <em class="structfield"><code><a name="GOutputVector.size"></a>size</code></em>;</span></p></td>
|
488
506
|
<td>the size of <em class="parameter"><code>buffer</code></em>.
|
489
507
|
</td>
|
490
508
|
</tr>
|
@@ -493,12 +511,12 @@ one buffer.
|
|
493
511
|
<p class="since">Since 2.22</p>
|
494
512
|
</div>
|
495
513
|
<hr>
|
496
|
-
<div class="refsect2"
|
514
|
+
<div class="refsect2">
|
497
515
|
<a name="g-socket-new"></a><h3>g_socket_new ()</h3>
|
498
|
-
<pre class="programlisting"><a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> *
|
516
|
+
<pre class="programlisting"><a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> * g_socket_new (<em class="parameter"><code><a class="link" href="GSocketAddress.html#GSocketFamily" title="enum GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>,
|
499
517
|
<em class="parameter"><code><a class="link" href="GSocket.html#GSocketType" title="enum GSocketType"><span class="type">GSocketType</span></a> type</code></em>,
|
500
518
|
<em class="parameter"><code><a class="link" href="GSocket.html#GSocketProtocol" title="enum GSocketProtocol"><span class="type">GSocketProtocol</span></a> protocol</code></em>,
|
501
|
-
<em class="parameter"><code><a href="/
|
519
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
502
520
|
<p>
|
503
521
|
Creates a new <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> with the defined family, type and protocol.
|
504
522
|
If <em class="parameter"><code>protocol</code></em> is 0 (<a class="link" href="GSocket.html#G-SOCKET-PROTOCOL-DEFAULT:CAPS"><code class="literal">G_SOCKET_PROTOCOL_DEFAULT</code></a>) the default protocol type
|
@@ -537,13 +555,13 @@ know the protocol number used for it.
|
|
537
555
|
<tr>
|
538
556
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
539
557
|
<td>
|
540
|
-
<a href="/
|
558
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
541
559
|
</td>
|
542
560
|
</tr>
|
543
561
|
<tr>
|
544
562
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
545
|
-
<td> a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> or <a href="/
|
546
|
-
Free the returned object with <a href="/
|
563
|
+
<td> a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.
|
564
|
+
Free the returned object with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.
|
547
565
|
|
548
566
|
</td>
|
549
567
|
</tr>
|
@@ -552,10 +570,10 @@ know the protocol number used for it.
|
|
552
570
|
<p class="since">Since 2.22</p>
|
553
571
|
</div>
|
554
572
|
<hr>
|
555
|
-
<div class="refsect2"
|
573
|
+
<div class="refsect2">
|
556
574
|
<a name="g-socket-new-from-fd"></a><h3>g_socket_new_from_fd ()</h3>
|
557
|
-
<pre class="programlisting"><a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> *
|
558
|
-
<em class="parameter"><code><a href="/
|
575
|
+
<pre class="programlisting"><a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> * g_socket_new_from_fd (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> fd</code></em>,
|
576
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
559
577
|
<p>
|
560
578
|
Creates a new <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> from a native file descriptor
|
561
579
|
or winsock SOCKET handle.
|
@@ -577,13 +595,13 @@ mode of the <a class="link" href="GSocket.html" title="GSocket"><span class="typ
|
|
577
595
|
<tr>
|
578
596
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
579
597
|
<td>
|
580
|
-
<a href="/
|
598
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
581
599
|
</td>
|
582
600
|
</tr>
|
583
601
|
<tr>
|
584
602
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
585
|
-
<td> a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> or <a href="/
|
586
|
-
Free the returned object with <a href="/
|
603
|
+
<td> a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.
|
604
|
+
Free the returned object with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.
|
587
605
|
|
588
606
|
</td>
|
589
607
|
</tr>
|
@@ -592,12 +610,12 @@ mode of the <a class="link" href="GSocket.html" title="GSocket"><span class="typ
|
|
592
610
|
<p class="since">Since 2.22</p>
|
593
611
|
</div>
|
594
612
|
<hr>
|
595
|
-
<div class="refsect2"
|
613
|
+
<div class="refsect2">
|
596
614
|
<a name="g-socket-bind"></a><h3>g_socket_bind ()</h3>
|
597
|
-
<pre class="programlisting"><a href="/
|
615
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_bind (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
598
616
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> *address</code></em>,
|
599
|
-
<em class="parameter"><code><a href="/
|
600
|
-
<em class="parameter"><code><a href="/
|
617
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> allow_reuse</code></em>,
|
618
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
601
619
|
<p>
|
602
620
|
When a socket is created it is attached to an address family, but it
|
603
621
|
doesn't have an address in this family. <a class="link" href="GSocket.html#g-socket-bind" title="g_socket_bind ()"><code class="function">g_socket_bind()</code></a> assigns the
|
@@ -610,9 +628,9 @@ In certain situations, you may also want to bind a socket that will be
|
|
610
628
|
used to initiate connections, though this is not normally required.
|
611
629
|
</p>
|
612
630
|
<p>
|
613
|
-
<em class="parameter"><code>allow_reuse</code></em> should be <a href="/
|
614
|
-
eventually call <a class="link" href="GSocket.html#g-socket-accept" title="g_socket_accept ()"><code class="function">g_socket_accept()</code></a> on), and <a href="/
|
615
|
-
(Specifically, if it is <a href="/
|
631
|
+
<em class="parameter"><code>allow_reuse</code></em> should be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for server sockets (sockets that you will
|
632
|
+
eventually call <a class="link" href="GSocket.html#g-socket-accept" title="g_socket_accept ()"><code class="function">g_socket_accept()</code></a> on), and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> for client sockets.
|
633
|
+
(Specifically, if it is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then <a class="link" href="GSocket.html#g-socket-bind" title="g_socket_bind ()"><code class="function">g_socket_bind()</code></a> will set the
|
616
634
|
<code class="literal">SO_REUSEADDR</code> flag on the socket, allowing it to bind <em class="parameter"><code>address</code></em> even if
|
617
635
|
that address was previously used by another socket that has not yet been
|
618
636
|
fully cleaned-up by the kernel. Failing to set this flag on a server
|
@@ -640,12 +658,12 @@ the server program is stopped and then immediately restarted.)
|
|
640
658
|
<tr>
|
641
659
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
642
660
|
<td>
|
643
|
-
<a href="/
|
661
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
644
662
|
</td>
|
645
663
|
</tr>
|
646
664
|
<tr>
|
647
665
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
648
|
-
<td> <a href="/
|
666
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error.
|
649
667
|
|
650
668
|
</td>
|
651
669
|
</tr>
|
@@ -654,10 +672,10 @@ the server program is stopped and then immediately restarted.)
|
|
654
672
|
<p class="since">Since 2.22</p>
|
655
673
|
</div>
|
656
674
|
<hr>
|
657
|
-
<div class="refsect2"
|
675
|
+
<div class="refsect2">
|
658
676
|
<a name="g-socket-listen"></a><h3>g_socket_listen ()</h3>
|
659
|
-
<pre class="programlisting"><a href="/
|
660
|
-
<em class="parameter"><code><a href="/
|
677
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_listen (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
678
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
661
679
|
<p>
|
662
680
|
Marks the socket as a server socket, i.e. a socket that is used
|
663
681
|
to accept incoming requests using <a class="link" href="GSocket.html#g-socket-accept" title="g_socket_accept ()"><code class="function">g_socket_accept()</code></a>.
|
@@ -681,12 +699,12 @@ To set the maximum amount of outstanding clients, use
|
|
681
699
|
<tr>
|
682
700
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
683
701
|
<td>
|
684
|
-
<a href="/
|
702
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
685
703
|
</td>
|
686
704
|
</tr>
|
687
705
|
<tr>
|
688
706
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
689
|
-
<td> <a href="/
|
707
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error.
|
690
708
|
|
691
709
|
</td>
|
692
710
|
</tr>
|
@@ -695,11 +713,11 @@ To set the maximum amount of outstanding clients, use
|
|
695
713
|
<p class="since">Since 2.22</p>
|
696
714
|
</div>
|
697
715
|
<hr>
|
698
|
-
<div class="refsect2"
|
716
|
+
<div class="refsect2">
|
699
717
|
<a name="g-socket-accept"></a><h3>g_socket_accept ()</h3>
|
700
|
-
<pre class="programlisting"><a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> *
|
718
|
+
<pre class="programlisting"><a class="link" href="GSocket.html" title="GSocket"><span class="returnvalue">GSocket</span></a> * g_socket_accept (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
701
719
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
702
|
-
<em class="parameter"><code><a href="/
|
720
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
703
721
|
<p>
|
704
722
|
Accept incoming connections on a connection-based socket. This removes
|
705
723
|
the first outstanding connection request from the listening socket and
|
@@ -712,7 +730,7 @@ must be listening for incoming connections (<a class="link" href="GSocket.html#g
|
|
712
730
|
<p>
|
713
731
|
If there are no outstanding connections then the operation will block
|
714
732
|
or return <a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> if non-blocking I/O is enabled.
|
715
|
-
To be notified of an incoming connection, wait for the <a href="/
|
733
|
+
To be notified of an incoming connection, wait for the <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-IN:CAPS"><code class="literal">G_IO_IN</code></a> condition.
|
716
734
|
</p>
|
717
735
|
<div class="variablelist"><table border="0">
|
718
736
|
<col align="left" valign="top">
|
@@ -724,19 +742,19 @@ To be notified of an incoming connection, wait for the <a href="/usr/share/gtk-d
|
|
724
742
|
</tr>
|
725
743
|
<tr>
|
726
744
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
727
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
745
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
728
746
|
</td>
|
729
747
|
</tr>
|
730
748
|
<tr>
|
731
749
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
732
750
|
<td>
|
733
|
-
<a href="/
|
751
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
734
752
|
</td>
|
735
753
|
</tr>
|
736
754
|
<tr>
|
737
755
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
738
|
-
<td> a new <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a>, or <a href="/
|
739
|
-
Free the returned object with <a href="/
|
756
|
+
<td> a new <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.
|
757
|
+
Free the returned object with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.
|
740
758
|
|
741
759
|
</td>
|
742
760
|
</tr>
|
@@ -745,12 +763,12 @@ To be notified of an incoming connection, wait for the <a href="/usr/share/gtk-d
|
|
745
763
|
<p class="since">Since 2.22</p>
|
746
764
|
</div>
|
747
765
|
<hr>
|
748
|
-
<div class="refsect2"
|
766
|
+
<div class="refsect2">
|
749
767
|
<a name="g-socket-connect"></a><h3>g_socket_connect ()</h3>
|
750
|
-
<pre class="programlisting"><a href="/
|
768
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_connect (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
751
769
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> *address</code></em>,
|
752
770
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
753
|
-
<em class="parameter"><code><a href="/
|
771
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
754
772
|
<p>
|
755
773
|
Connect the socket to the specified remote address.
|
756
774
|
</p>
|
@@ -787,18 +805,18 @@ checked with <a class="link" href="GSocket.html#g-socket-check-connect-result" t
|
|
787
805
|
</tr>
|
788
806
|
<tr>
|
789
807
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
790
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
808
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
791
809
|
</td>
|
792
810
|
</tr>
|
793
811
|
<tr>
|
794
812
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
795
813
|
<td>
|
796
|
-
<a href="/
|
814
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
797
815
|
</td>
|
798
816
|
</tr>
|
799
817
|
<tr>
|
800
818
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
801
|
-
<td> <a href="/
|
819
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if connected, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error.
|
802
820
|
|
803
821
|
</td>
|
804
822
|
</tr>
|
@@ -807,10 +825,10 @@ checked with <a class="link" href="GSocket.html#g-socket-check-connect-result" t
|
|
807
825
|
<p class="since">Since 2.22</p>
|
808
826
|
</div>
|
809
827
|
<hr>
|
810
|
-
<div class="refsect2"
|
828
|
+
<div class="refsect2">
|
811
829
|
<a name="g-socket-check-connect-result"></a><h3>g_socket_check_connect_result ()</h3>
|
812
|
-
<pre class="programlisting"><a href="/
|
813
|
-
<em class="parameter"><code><a href="/
|
830
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_check_connect_result (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
831
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
814
832
|
<p>
|
815
833
|
Checks and resets the pending connect error for the socket.
|
816
834
|
This is used to check for errors when <a class="link" href="GSocket.html#g-socket-connect" title="g_socket_connect ()"><code class="function">g_socket_connect()</code></a> is
|
@@ -827,12 +845,12 @@ used in non-blocking mode.
|
|
827
845
|
<tr>
|
828
846
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
829
847
|
<td>
|
830
|
-
<a href="/
|
848
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
831
849
|
</td>
|
832
850
|
</tr>
|
833
851
|
<tr>
|
834
852
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
835
|
-
<td> <a href="/
|
853
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if no error, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise, setting <em class="parameter"><code>error</code></em> to the error
|
836
854
|
|
837
855
|
</td>
|
838
856
|
</tr>
|
@@ -841,17 +859,17 @@ used in non-blocking mode.
|
|
841
859
|
<p class="since">Since 2.22</p>
|
842
860
|
</div>
|
843
861
|
<hr>
|
844
|
-
<div class="refsect2"
|
862
|
+
<div class="refsect2">
|
845
863
|
<a name="g-socket-receive"></a><h3>g_socket_receive ()</h3>
|
846
|
-
<pre class="programlisting"><a href="/
|
847
|
-
<em class="parameter"><code><a href="/
|
848
|
-
<em class="parameter"><code><a href="/
|
864
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> g_socket_receive (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
865
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
866
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
849
867
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
850
|
-
<em class="parameter"><code><a href="/
|
868
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
851
869
|
<p>
|
852
870
|
Receive data (up to <em class="parameter"><code>size</code></em> bytes) from a socket. This is mainly used by
|
853
871
|
connection-oriented sockets; it is identical to <a class="link" href="GSocket.html#g-socket-receive-from" title="g_socket_receive_from ()"><code class="function">g_socket_receive_from()</code></a>
|
854
|
-
with <em class="parameter"><code>address</code></em> set to <a href="/
|
872
|
+
with <em class="parameter"><code>address</code></em> set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
855
873
|
</p>
|
856
874
|
<p>
|
857
875
|
For <a class="link" href="GSocket.html#G-SOCKET-TYPE-DATAGRAM:CAPS"><code class="literal">G_SOCKET_TYPE_DATAGRAM</code></a> and <a class="link" href="GSocket.html#G-SOCKET-TYPE-SEQPACKET:CAPS"><code class="literal">G_SOCKET_TYPE_SEQPACKET</code></a> sockets,
|
@@ -871,7 +889,7 @@ If the socket is in blocking mode the call will block until there is
|
|
871
889
|
some data to receive or there is an error. If there is no data available
|
872
890
|
and the socket is in non-blocking mode, a <a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> error
|
873
891
|
will be returned. To be notified when data is available, wait for the
|
874
|
-
<a href="/
|
892
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-IN:CAPS"><code class="literal">G_IO_IN</code></a> condition.
|
875
893
|
</p>
|
876
894
|
<p>
|
877
895
|
On error -1 is returned and <em class="parameter"><code>error</code></em> is set accordingly.
|
@@ -897,13 +915,13 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
897
915
|
</tr>
|
898
916
|
<tr>
|
899
917
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
900
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
918
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
901
919
|
</td>
|
902
920
|
</tr>
|
903
921
|
<tr>
|
904
922
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
905
923
|
<td>
|
906
|
-
<a href="/
|
924
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
907
925
|
</td>
|
908
926
|
</tr>
|
909
927
|
<tr>
|
@@ -917,19 +935,19 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
917
935
|
<p class="since">Since 2.22</p>
|
918
936
|
</div>
|
919
937
|
<hr>
|
920
|
-
<div class="refsect2"
|
938
|
+
<div class="refsect2">
|
921
939
|
<a name="g-socket-receive-from"></a><h3>g_socket_receive_from ()</h3>
|
922
|
-
<pre class="programlisting"><a href="/
|
940
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> g_socket_receive_from (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
923
941
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> **address</code></em>,
|
924
|
-
<em class="parameter"><code><a href="/
|
925
|
-
<em class="parameter"><code><a href="/
|
942
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
943
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
926
944
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
927
|
-
<em class="parameter"><code><a href="/
|
945
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
928
946
|
<p>
|
929
947
|
Receive data (up to <em class="parameter"><code>size</code></em> bytes) from a socket.
|
930
948
|
</p>
|
931
949
|
<p>
|
932
|
-
If <em class="parameter"><code>address</code></em> is non-<a href="/
|
950
|
+
If <em class="parameter"><code>address</code></em> is non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then <em class="parameter"><code>address</code></em> will be set equal to the
|
933
951
|
source address of the received packet.
|
934
952
|
<em class="parameter"><code>address</code></em> is owned by the caller.
|
935
953
|
</p>
|
@@ -946,7 +964,7 @@ See <a class="link" href="GSocket.html#g-socket-receive" title="g_socket_receive
|
|
946
964
|
</tr>
|
947
965
|
<tr>
|
948
966
|
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
|
949
|
-
<td>a pointer to a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> pointer, or <a href="/
|
967
|
+
<td>a pointer to a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> pointer, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
950
968
|
</td>
|
951
969
|
</tr>
|
952
970
|
<tr>
|
@@ -962,13 +980,13 @@ See <a class="link" href="GSocket.html#g-socket-receive" title="g_socket_receive
|
|
962
980
|
</tr>
|
963
981
|
<tr>
|
964
982
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
965
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
983
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
966
984
|
</td>
|
967
985
|
</tr>
|
968
986
|
<tr>
|
969
987
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
970
988
|
<td>
|
971
|
-
<a href="/
|
989
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
972
990
|
</td>
|
973
991
|
</tr>
|
974
992
|
<tr>
|
@@ -982,24 +1000,24 @@ See <a class="link" href="GSocket.html#g-socket-receive" title="g_socket_receive
|
|
982
1000
|
<p class="since">Since 2.22</p>
|
983
1001
|
</div>
|
984
1002
|
<hr>
|
985
|
-
<div class="refsect2"
|
1003
|
+
<div class="refsect2">
|
986
1004
|
<a name="g-socket-receive-message"></a><h3>g_socket_receive_message ()</h3>
|
987
|
-
<pre class="programlisting"><a href="/
|
1005
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> g_socket_receive_message (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
988
1006
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> **address</code></em>,
|
989
1007
|
<em class="parameter"><code><a class="link" href="GSocket.html#GInputVector" title="GInputVector"><span class="type">GInputVector</span></a> *vectors</code></em>,
|
990
|
-
<em class="parameter"><code><a href="/
|
1008
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num_vectors</code></em>,
|
991
1009
|
<em class="parameter"><code><a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> ***messages</code></em>,
|
992
|
-
<em class="parameter"><code><a href="/
|
993
|
-
<em class="parameter"><code><a href="/
|
1010
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *num_messages</code></em>,
|
1011
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *flags</code></em>,
|
994
1012
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
995
|
-
<em class="parameter"><code><a href="/
|
1013
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
996
1014
|
<p>
|
997
1015
|
Receive data from a socket. This is the most complicated and
|
998
1016
|
fully-featured version of this call. For easier use, see
|
999
1017
|
<a class="link" href="GSocket.html#g-socket-receive" title="g_socket_receive ()"><code class="function">g_socket_receive()</code></a> and <a class="link" href="GSocket.html#g-socket-receive-from" title="g_socket_receive_from ()"><code class="function">g_socket_receive_from()</code></a>.
|
1000
1018
|
</p>
|
1001
1019
|
<p>
|
1002
|
-
If <em class="parameter"><code>address</code></em> is non-<a href="/
|
1020
|
+
If <em class="parameter"><code>address</code></em> is non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then <em class="parameter"><code>address</code></em> will be set equal to the
|
1003
1021
|
source address of the received packet.
|
1004
1022
|
<em class="parameter"><code>address</code></em> is owned by the caller.
|
1005
1023
|
</p>
|
@@ -1008,31 +1026,32 @@ source address of the received packet.
|
|
1008
1026
|
<em class="parameter"><code>num_vectors</code></em> must be the length of this array. These structs
|
1009
1027
|
describe the buffers that received data will be scattered into.
|
1010
1028
|
If <em class="parameter"><code>num_vectors</code></em> is -1, then <em class="parameter"><code>vectors</code></em> is assumed to be terminated
|
1011
|
-
by a <a class="link" href="GSocket.html#GInputVector" title="GInputVector"><span class="type">GInputVector</span></a> with a <a href="/
|
1029
|
+
by a <a class="link" href="GSocket.html#GInputVector" title="GInputVector"><span class="type">GInputVector</span></a> with a <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> buffer pointer.
|
1012
1030
|
</p>
|
1013
1031
|
<p>
|
1014
1032
|
As a special case, if <em class="parameter"><code>num_vectors</code></em> is 0 (in which case, <em class="parameter"><code>vectors</code></em>
|
1015
|
-
may of course be <a href="/
|
1033
|
+
may of course be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>), then a single byte is received and
|
1016
1034
|
discarded. This is to facilitate the common practice of sending a
|
1017
1035
|
single '\0' byte for the purposes of transferring ancillary data.
|
1018
1036
|
</p>
|
1019
1037
|
<p>
|
1020
|
-
<em class="parameter"><code>messages</code></em>, if non-<a href="/
|
1021
|
-
array of <a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> instances.
|
1022
|
-
|
1023
|
-
<a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> per message
|
1024
|
-
<a href="/
|
1025
|
-
<
|
1026
|
-
|
1038
|
+
<em class="parameter"><code>messages</code></em>, if non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, will be set to point to a newly-allocated
|
1039
|
+
array of <a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> instances or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no such
|
1040
|
+
messages was received. These correspond to the control messages
|
1041
|
+
received from the kernel, one <a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> per message
|
1042
|
+
from the kernel. This array is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated and must be freed
|
1043
|
+
by the caller using <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> after calling <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> on each
|
1044
|
+
element. If <em class="parameter"><code>messages</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, any control messages received will
|
1045
|
+
be discarded.
|
1027
1046
|
</p>
|
1028
1047
|
<p>
|
1029
|
-
<em class="parameter"><code>num_messages</code></em>, if non-<a href="/
|
1048
|
+
<em class="parameter"><code>num_messages</code></em>, if non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, will be set to the number of control
|
1030
1049
|
messages received.
|
1031
1050
|
</p>
|
1032
1051
|
<p>
|
1033
|
-
If both <em class="parameter"><code>messages</code></em> and <em class="parameter"><code>num_messages</code></em> are non-<a href="/
|
1052
|
+
If both <em class="parameter"><code>messages</code></em> and <em class="parameter"><code>num_messages</code></em> are non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then
|
1034
1053
|
<em class="parameter"><code>num_messages</code></em> gives the number of <a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> instances
|
1035
|
-
in <em class="parameter"><code>messages</code></em> (ie: not including the <a href="/
|
1054
|
+
in <em class="parameter"><code>messages</code></em> (ie: not including the <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> terminator).
|
1036
1055
|
</p>
|
1037
1056
|
<p>
|
1038
1057
|
<em class="parameter"><code>flags</code></em> is an in/out parameter. The commonly available arguments
|
@@ -1055,7 +1074,7 @@ If the socket is in blocking mode the call will block until there
|
|
1055
1074
|
is some data to receive or there is an error. If there is no data
|
1056
1075
|
available and the socket is in non-blocking mode, a
|
1057
1076
|
<a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> error will be returned. To be notified when
|
1058
|
-
data is available, wait for the <a href="/
|
1077
|
+
data is available, wait for the <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-IN:CAPS"><code class="literal">G_IO_IN</code></a> condition.
|
1059
1078
|
</p>
|
1060
1079
|
<p>
|
1061
1080
|
On error -1 is returned and <em class="parameter"><code>error</code></em> is set accordingly.
|
@@ -1070,7 +1089,7 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
1070
1089
|
</tr>
|
1071
1090
|
<tr>
|
1072
1091
|
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
|
1073
|
-
<td>a pointer to a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> pointer, or <a href="/
|
1092
|
+
<td>a pointer to a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> pointer, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1074
1093
|
</td>
|
1075
1094
|
</tr>
|
1076
1095
|
<tr>
|
@@ -1085,14 +1104,14 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
1085
1104
|
</tr>
|
1086
1105
|
<tr>
|
1087
1106
|
<td><p><span class="term"><em class="parameter"><code>messages</code></em> :</span></p></td>
|
1088
|
-
<td>a pointer which
|
1089
|
-
<a href="GSocketControlMessage.html"><span class="type">GSocketControlMessages</span></a>, or <a href="/
|
1107
|
+
<td>a pointer which may be filled with an array of
|
1108
|
+
<a href="GSocketControlMessage.html"><span class="type">GSocketControlMessages</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1090
1109
|
</td>
|
1091
1110
|
</tr>
|
1092
1111
|
<tr>
|
1093
1112
|
<td><p><span class="term"><em class="parameter"><code>num_messages</code></em> :</span></p></td>
|
1094
1113
|
<td>a pointer which will be filled with the number of
|
1095
|
-
elements in <em class="parameter"><code>messages</code></em>, or <a href="/
|
1114
|
+
elements in <em class="parameter"><code>messages</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1096
1115
|
</td>
|
1097
1116
|
</tr>
|
1098
1117
|
<tr>
|
@@ -1102,12 +1121,12 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
1102
1121
|
</tr>
|
1103
1122
|
<tr>
|
1104
1123
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
1105
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
1124
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1106
1125
|
</td>
|
1107
1126
|
</tr>
|
1108
1127
|
<tr>
|
1109
1128
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1110
|
-
<td>a <a href="/
|
1129
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> pointer, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1111
1130
|
</td>
|
1112
1131
|
</tr>
|
1113
1132
|
<tr>
|
@@ -1121,26 +1140,85 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
1121
1140
|
<p class="since">Since 2.22</p>
|
1122
1141
|
</div>
|
1123
1142
|
<hr>
|
1124
|
-
<div class="refsect2"
|
1143
|
+
<div class="refsect2">
|
1144
|
+
<a name="g-socket-receive-with-blocking"></a><h3>g_socket_receive_with_blocking ()</h3>
|
1145
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> g_socket_receive_with_blocking (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1146
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
1147
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
1148
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> blocking</code></em>,
|
1149
|
+
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
1150
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1151
|
+
<p>
|
1152
|
+
This behaves exactly the same as <a class="link" href="GSocket.html#g-socket-receive" title="g_socket_receive ()"><code class="function">g_socket_receive()</code></a>, except that
|
1153
|
+
the choice of blocking or non-blocking behavior is determined by
|
1154
|
+
the <em class="parameter"><code>blocking</code></em> argument rather than by <em class="parameter"><code>socket</code></em>'s properties.
|
1155
|
+
</p>
|
1156
|
+
<div class="variablelist"><table border="0">
|
1157
|
+
<col align="left" valign="top">
|
1158
|
+
<tbody>
|
1159
|
+
<tr>
|
1160
|
+
<td><p><span class="term"><em class="parameter"><code>socket</code></em> :</span></p></td>
|
1161
|
+
<td>a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a>
|
1162
|
+
</td>
|
1163
|
+
</tr>
|
1164
|
+
<tr>
|
1165
|
+
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
|
1166
|
+
<td>a buffer to read data into (which should be at least <em class="parameter"><code>size</code></em>
|
1167
|
+
bytes long).
|
1168
|
+
</td>
|
1169
|
+
</tr>
|
1170
|
+
<tr>
|
1171
|
+
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
1172
|
+
<td>the number of bytes you want to read from the socket
|
1173
|
+
</td>
|
1174
|
+
</tr>
|
1175
|
+
<tr>
|
1176
|
+
<td><p><span class="term"><em class="parameter"><code>blocking</code></em> :</span></p></td>
|
1177
|
+
<td>whether to do blocking or non-blocking I/O
|
1178
|
+
</td>
|
1179
|
+
</tr>
|
1180
|
+
<tr>
|
1181
|
+
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
1182
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1183
|
+
</td>
|
1184
|
+
</tr>
|
1185
|
+
<tr>
|
1186
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1187
|
+
<td>
|
1188
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
1189
|
+
</td>
|
1190
|
+
</tr>
|
1191
|
+
<tr>
|
1192
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1193
|
+
<td> Number of bytes read, or -1 on error
|
1194
|
+
|
1195
|
+
</td>
|
1196
|
+
</tr>
|
1197
|
+
</tbody>
|
1198
|
+
</table></div>
|
1199
|
+
<p class="since">Since 2.26</p>
|
1200
|
+
</div>
|
1201
|
+
<hr>
|
1202
|
+
<div class="refsect2">
|
1125
1203
|
<a name="g-socket-send"></a><h3>g_socket_send ()</h3>
|
1126
|
-
<pre class="programlisting"><a href="/
|
1127
|
-
<em class="parameter"><code>const <a href="/
|
1128
|
-
<em class="parameter"><code><a href="/
|
1204
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> g_socket_send (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1205
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
1206
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
1129
1207
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
1130
|
-
<em class="parameter"><code><a href="/
|
1208
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1131
1209
|
<p>
|
1132
1210
|
Tries to send <em class="parameter"><code>size</code></em> bytes from <em class="parameter"><code>buffer</code></em> on the socket. This is
|
1133
1211
|
mainly used by connection-oriented sockets; it is identical to
|
1134
|
-
<a class="link" href="GSocket.html#g-socket-send-to" title="g_socket_send_to ()"><code class="function">g_socket_send_to()</code></a> with <em class="parameter"><code>address</code></em> set to <a href="/
|
1212
|
+
<a class="link" href="GSocket.html#g-socket-send-to" title="g_socket_send_to ()"><code class="function">g_socket_send_to()</code></a> with <em class="parameter"><code>address</code></em> set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
1135
1213
|
</p>
|
1136
1214
|
<p>
|
1137
1215
|
If the socket is in blocking mode the call will block until there is
|
1138
1216
|
space for the data in the socket queue. If there is no space available
|
1139
1217
|
and the socket is in non-blocking mode a <a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> error
|
1140
1218
|
will be returned. To be notified when space is available, wait for the
|
1141
|
-
<a href="/
|
1219
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-OUT:CAPS"><code class="literal">G_IO_OUT</code></a> condition. Note though that you may still receive
|
1142
1220
|
<a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> from <a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()"><code class="function">g_socket_send()</code></a> even if you were previously
|
1143
|
-
notified of a <a href="/
|
1221
|
+
notified of a <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-OUT:CAPS"><code class="literal">G_IO_OUT</code></a> condition. (On Windows in particular, this is
|
1144
1222
|
very common due to the way the underlying APIs work.)
|
1145
1223
|
</p>
|
1146
1224
|
<p>
|
@@ -1166,13 +1244,13 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
1166
1244
|
</tr>
|
1167
1245
|
<tr>
|
1168
1246
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
1169
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
1247
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1170
1248
|
</td>
|
1171
1249
|
</tr>
|
1172
1250
|
<tr>
|
1173
1251
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1174
1252
|
<td>
|
1175
|
-
<a href="/
|
1253
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
1176
1254
|
</td>
|
1177
1255
|
</tr>
|
1178
1256
|
<tr>
|
@@ -1187,17 +1265,17 @@ on error
|
|
1187
1265
|
<p class="since">Since 2.22</p>
|
1188
1266
|
</div>
|
1189
1267
|
<hr>
|
1190
|
-
<div class="refsect2"
|
1268
|
+
<div class="refsect2">
|
1191
1269
|
<a name="g-socket-send-to"></a><h3>g_socket_send_to ()</h3>
|
1192
|
-
<pre class="programlisting"><a href="/
|
1270
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> g_socket_send_to (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1193
1271
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> *address</code></em>,
|
1194
|
-
<em class="parameter"><code>const <a href="/
|
1195
|
-
<em class="parameter"><code><a href="/
|
1272
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
1273
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
1196
1274
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
1197
|
-
<em class="parameter"><code><a href="/
|
1275
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1198
1276
|
<p>
|
1199
1277
|
Tries to send <em class="parameter"><code>size</code></em> bytes from <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>address</code></em>. If <em class="parameter"><code>address</code></em> is
|
1200
|
-
<a href="/
|
1278
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then the message is sent to the default receiver (set by
|
1201
1279
|
<a class="link" href="GSocket.html#g-socket-connect" title="g_socket_connect ()"><code class="function">g_socket_connect()</code></a>).
|
1202
1280
|
</p>
|
1203
1281
|
<p>
|
@@ -1213,7 +1291,7 @@ See <a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()"><
|
|
1213
1291
|
</tr>
|
1214
1292
|
<tr>
|
1215
1293
|
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
|
1216
|
-
<td>a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a>, or <a href="/
|
1294
|
+
<td>a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1217
1295
|
</td>
|
1218
1296
|
</tr>
|
1219
1297
|
<tr>
|
@@ -1228,13 +1306,13 @@ See <a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()"><
|
|
1228
1306
|
</tr>
|
1229
1307
|
<tr>
|
1230
1308
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
1231
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
1309
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1232
1310
|
</td>
|
1233
1311
|
</tr>
|
1234
1312
|
<tr>
|
1235
1313
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1236
1314
|
<td>
|
1237
|
-
<a href="/
|
1315
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
1238
1316
|
</td>
|
1239
1317
|
</tr>
|
1240
1318
|
<tr>
|
@@ -1249,41 +1327,41 @@ on error
|
|
1249
1327
|
<p class="since">Since 2.22</p>
|
1250
1328
|
</div>
|
1251
1329
|
<hr>
|
1252
|
-
<div class="refsect2"
|
1330
|
+
<div class="refsect2">
|
1253
1331
|
<a name="g-socket-send-message"></a><h3>g_socket_send_message ()</h3>
|
1254
|
-
<pre class="programlisting"><a href="/
|
1332
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> g_socket_send_message (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1255
1333
|
<em class="parameter"><code><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> *address</code></em>,
|
1256
1334
|
<em class="parameter"><code><a class="link" href="GSocket.html#GOutputVector" title="GOutputVector"><span class="type">GOutputVector</span></a> *vectors</code></em>,
|
1257
|
-
<em class="parameter"><code><a href="/
|
1335
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num_vectors</code></em>,
|
1258
1336
|
<em class="parameter"><code><a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> **messages</code></em>,
|
1259
|
-
<em class="parameter"><code><a href="/
|
1260
|
-
<em class="parameter"><code><a href="/
|
1337
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num_messages</code></em>,
|
1338
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> flags</code></em>,
|
1261
1339
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
1262
|
-
<em class="parameter"><code><a href="/
|
1340
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1263
1341
|
<p>
|
1264
1342
|
Send data to <em class="parameter"><code>address</code></em> on <em class="parameter"><code>socket</code></em>. This is the most complicated and
|
1265
1343
|
fully-featured version of this call. For easier use, see
|
1266
1344
|
<a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()"><code class="function">g_socket_send()</code></a> and <a class="link" href="GSocket.html#g-socket-send-to" title="g_socket_send_to ()"><code class="function">g_socket_send_to()</code></a>.
|
1267
1345
|
</p>
|
1268
1346
|
<p>
|
1269
|
-
If <em class="parameter"><code>address</code></em> is <a href="/
|
1347
|
+
If <em class="parameter"><code>address</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then the message is sent to the default receiver
|
1270
1348
|
(set by <a class="link" href="GSocket.html#g-socket-connect" title="g_socket_connect ()"><code class="function">g_socket_connect()</code></a>).
|
1271
1349
|
</p>
|
1272
1350
|
<p>
|
1273
1351
|
<em class="parameter"><code>vectors</code></em> must point to an array of <a class="link" href="GSocket.html#GOutputVector" title="GOutputVector"><span class="type">GOutputVector</span></a> structs and
|
1274
1352
|
<em class="parameter"><code>num_vectors</code></em> must be the length of this array. (If <em class="parameter"><code>num_vectors</code></em> is -1,
|
1275
1353
|
then <em class="parameter"><code>vectors</code></em> is assumed to be terminated by a <a class="link" href="GSocket.html#GOutputVector" title="GOutputVector"><span class="type">GOutputVector</span></a> with a
|
1276
|
-
<a href="/
|
1354
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> buffer pointer.) The <a class="link" href="GSocket.html#GOutputVector" title="GOutputVector"><span class="type">GOutputVector</span></a> structs describe the buffers
|
1277
1355
|
that the sent data will be gathered from. Using multiple
|
1278
1356
|
<a class="link" href="GSocket.html#GOutputVector" title="GOutputVector"><span class="type">GOutputVector</span></a>s is more memory-efficient than manually copying
|
1279
1357
|
data from multiple sources into a single buffer, and more
|
1280
1358
|
network-efficient than making multiple calls to <a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()"><code class="function">g_socket_send()</code></a>.
|
1281
1359
|
</p>
|
1282
1360
|
<p>
|
1283
|
-
<em class="parameter"><code>messages</code></em>, if non-<a href="/
|
1361
|
+
<em class="parameter"><code>messages</code></em>, if non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, is taken to point to an array of <em class="parameter"><code>num_messages</code></em>
|
1284
1362
|
<a class="link" href="GSocketControlMessage.html" title="GSocketControlMessage"><span class="type">GSocketControlMessage</span></a> instances. These correspond to the control
|
1285
1363
|
messages to be sent on the socket.
|
1286
|
-
If <em class="parameter"><code>num_messages</code></em> is -1 then <em class="parameter"><code>messages</code></em> is treated as a <a href="/
|
1364
|
+
If <em class="parameter"><code>num_messages</code></em> is -1 then <em class="parameter"><code>messages</code></em> is treated as a <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated
|
1287
1365
|
array.
|
1288
1366
|
</p>
|
1289
1367
|
<p>
|
@@ -1297,9 +1375,9 @@ If the socket is in blocking mode the call will block until there is
|
|
1297
1375
|
space for the data in the socket queue. If there is no space available
|
1298
1376
|
and the socket is in non-blocking mode a <a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> error
|
1299
1377
|
will be returned. To be notified when space is available, wait for the
|
1300
|
-
<a href="/
|
1378
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-OUT:CAPS"><code class="literal">G_IO_OUT</code></a> condition. Note though that you may still receive
|
1301
1379
|
<a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> from <a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()"><code class="function">g_socket_send()</code></a> even if you were previously
|
1302
|
-
notified of a <a href="/
|
1380
|
+
notified of a <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-OUT:CAPS"><code class="literal">G_IO_OUT</code></a> condition. (On Windows in particular, this is
|
1303
1381
|
very common due to the way the underlying APIs work.)
|
1304
1382
|
</p>
|
1305
1383
|
<p>
|
@@ -1315,7 +1393,7 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
1315
1393
|
</tr>
|
1316
1394
|
<tr>
|
1317
1395
|
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
|
1318
|
-
<td>a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a>, or <a href="/
|
1396
|
+
<td>a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1319
1397
|
</td>
|
1320
1398
|
</tr>
|
1321
1399
|
<tr>
|
@@ -1331,7 +1409,7 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
1331
1409
|
<tr>
|
1332
1410
|
<td><p><span class="term"><em class="parameter"><code>messages</code></em> :</span></p></td>
|
1333
1411
|
<td>a pointer to an array of <a href="GSocketControlMessage.html"><span class="type">GSocketControlMessages</span></a>, or
|
1334
|
-
<a href="/
|
1412
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
1335
1413
|
</td>
|
1336
1414
|
</tr>
|
1337
1415
|
<tr>
|
@@ -1346,13 +1424,13 @@ On error -1 is returned and <em class="parameter"><code>error</code></em> is set
|
|
1346
1424
|
</tr>
|
1347
1425
|
<tr>
|
1348
1426
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
1349
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
1427
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1350
1428
|
</td>
|
1351
1429
|
</tr>
|
1352
1430
|
<tr>
|
1353
1431
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1354
1432
|
<td>
|
1355
|
-
<a href="/
|
1433
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
1356
1434
|
</td>
|
1357
1435
|
</tr>
|
1358
1436
|
<tr>
|
@@ -1367,10 +1445,69 @@ on error
|
|
1367
1445
|
<p class="since">Since 2.22</p>
|
1368
1446
|
</div>
|
1369
1447
|
<hr>
|
1370
|
-
<div class="refsect2"
|
1448
|
+
<div class="refsect2">
|
1449
|
+
<a name="g-socket-send-with-blocking"></a><h3>g_socket_send_with_blocking ()</h3>
|
1450
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a> g_socket_send_with_blocking (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1451
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buffer</code></em>,
|
1452
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>,
|
1453
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> blocking</code></em>,
|
1454
|
+
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
1455
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1456
|
+
<p>
|
1457
|
+
This behaves exactly the same as <a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()"><code class="function">g_socket_send()</code></a>, except that
|
1458
|
+
the choice of blocking or non-blocking behavior is determined by
|
1459
|
+
the <em class="parameter"><code>blocking</code></em> argument rather than by <em class="parameter"><code>socket</code></em>'s properties.
|
1460
|
+
</p>
|
1461
|
+
<div class="variablelist"><table border="0">
|
1462
|
+
<col align="left" valign="top">
|
1463
|
+
<tbody>
|
1464
|
+
<tr>
|
1465
|
+
<td><p><span class="term"><em class="parameter"><code>socket</code></em> :</span></p></td>
|
1466
|
+
<td>a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a>
|
1467
|
+
</td>
|
1468
|
+
</tr>
|
1469
|
+
<tr>
|
1470
|
+
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
|
1471
|
+
<td>the buffer containing the data to send.
|
1472
|
+
</td>
|
1473
|
+
</tr>
|
1474
|
+
<tr>
|
1475
|
+
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
1476
|
+
<td>the number of bytes to send
|
1477
|
+
</td>
|
1478
|
+
</tr>
|
1479
|
+
<tr>
|
1480
|
+
<td><p><span class="term"><em class="parameter"><code>blocking</code></em> :</span></p></td>
|
1481
|
+
<td>whether to do blocking or non-blocking I/O
|
1482
|
+
</td>
|
1483
|
+
</tr>
|
1484
|
+
<tr>
|
1485
|
+
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
1486
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1487
|
+
</td>
|
1488
|
+
</tr>
|
1489
|
+
<tr>
|
1490
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1491
|
+
<td>
|
1492
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
1493
|
+
</td>
|
1494
|
+
</tr>
|
1495
|
+
<tr>
|
1496
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1497
|
+
<td> Number of bytes written (which may be less than <em class="parameter"><code>size</code></em>), or -1
|
1498
|
+
on error
|
1499
|
+
|
1500
|
+
</td>
|
1501
|
+
</tr>
|
1502
|
+
</tbody>
|
1503
|
+
</table></div>
|
1504
|
+
<p class="since">Since 2.26</p>
|
1505
|
+
</div>
|
1506
|
+
<hr>
|
1507
|
+
<div class="refsect2">
|
1371
1508
|
<a name="g-socket-close"></a><h3>g_socket_close ()</h3>
|
1372
|
-
<pre class="programlisting"><a href="/
|
1373
|
-
<em class="parameter"><code><a href="/
|
1509
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_close (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1510
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1374
1511
|
<p>
|
1375
1512
|
Closes the socket, shutting down any active connection.
|
1376
1513
|
</p>
|
@@ -1392,7 +1529,7 @@ resources are released as early as possible.
|
|
1392
1529
|
<p>
|
1393
1530
|
Beware that due to the way that TCP works, it is possible for
|
1394
1531
|
recently-sent data to be lost if either you close a socket while the
|
1395
|
-
<a href="/
|
1532
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-IN:CAPS"><code class="literal">G_IO_IN</code></a> condition is set, or else if the remote connection tries to
|
1396
1533
|
send something to you after you close the socket but before it has
|
1397
1534
|
finished reading all of the data you sent. There is no easy generic
|
1398
1535
|
way to avoid this problem; the easiest fix is to design the network
|
@@ -1401,8 +1538,8 @@ Another solution is for the server to half-close the connection by
|
|
1401
1538
|
calling <a class="link" href="GSocket.html#g-socket-shutdown" title="g_socket_shutdown ()"><code class="function">g_socket_shutdown()</code></a> with only the <em class="parameter"><code>shutdown_write</code></em> flag set,
|
1402
1539
|
and then wait for the client to notice this and close its side of the
|
1403
1540
|
connection, after which the server can safely call <a class="link" href="GSocket.html#g-socket-close" title="g_socket_close ()"><code class="function">g_socket_close()</code></a>.
|
1404
|
-
(This is what <a class="link" href="
|
1405
|
-
<a class="link" href="
|
1541
|
+
(This is what <a class="link" href="GTcpConnection.html" title="GTcpConnection"><span class="type">GTcpConnection</span></a> does if you call
|
1542
|
+
<a class="link" href="GTcpConnection.html#g-tcp-connection-set-graceful-disconnect" title="g_tcp_connection_set_graceful_disconnect ()"><code class="function">g_tcp_connection_set_graceful_disconnect()</code></a>. But of course, this
|
1406
1543
|
only works if the client will close its connection after the server
|
1407
1544
|
does.)
|
1408
1545
|
</p>
|
@@ -1417,12 +1554,12 @@ does.)
|
|
1417
1554
|
<tr>
|
1418
1555
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1419
1556
|
<td>
|
1420
|
-
<a href="/
|
1557
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
1421
1558
|
</td>
|
1422
1559
|
</tr>
|
1423
1560
|
<tr>
|
1424
1561
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1425
|
-
<td> <a href="/
|
1562
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error
|
1426
1563
|
|
1427
1564
|
</td>
|
1428
1565
|
</tr>
|
@@ -1431,9 +1568,9 @@ does.)
|
|
1431
1568
|
<p class="since">Since 2.22</p>
|
1432
1569
|
</div>
|
1433
1570
|
<hr>
|
1434
|
-
<div class="refsect2"
|
1571
|
+
<div class="refsect2">
|
1435
1572
|
<a name="g-socket-is-closed"></a><h3>g_socket_is_closed ()</h3>
|
1436
|
-
<pre class="programlisting"><a href="/
|
1573
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_is_closed (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
1437
1574
|
<p>
|
1438
1575
|
Checks whether a socket is closed.
|
1439
1576
|
</p>
|
@@ -1447,7 +1584,7 @@ Checks whether a socket is closed.
|
|
1447
1584
|
</tr>
|
1448
1585
|
<tr>
|
1449
1586
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1450
|
-
<td> <a href="/
|
1587
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if socket is closed, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise
|
1451
1588
|
|
1452
1589
|
</td>
|
1453
1590
|
</tr>
|
@@ -1456,25 +1593,25 @@ Checks whether a socket is closed.
|
|
1456
1593
|
<p class="since">Since 2.22</p>
|
1457
1594
|
</div>
|
1458
1595
|
<hr>
|
1459
|
-
<div class="refsect2"
|
1596
|
+
<div class="refsect2">
|
1460
1597
|
<a name="g-socket-shutdown"></a><h3>g_socket_shutdown ()</h3>
|
1461
|
-
<pre class="programlisting"><a href="/
|
1462
|
-
<em class="parameter"><code><a href="/
|
1463
|
-
<em class="parameter"><code><a href="/
|
1464
|
-
<em class="parameter"><code><a href="/
|
1598
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_shutdown (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1599
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> shutdown_read</code></em>,
|
1600
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> shutdown_write</code></em>,
|
1601
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1465
1602
|
<p>
|
1466
1603
|
Shut down part of a full-duplex connection.
|
1467
1604
|
</p>
|
1468
1605
|
<p>
|
1469
|
-
If <em class="parameter"><code>shutdown_read</code></em> is <a href="/
|
1606
|
+
If <em class="parameter"><code>shutdown_read</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> then the recieving side of the connection
|
1470
1607
|
is shut down, and further reading is disallowed.
|
1471
1608
|
</p>
|
1472
1609
|
<p>
|
1473
|
-
If <em class="parameter"><code>shutdown_write</code></em> is <a href="/
|
1610
|
+
If <em class="parameter"><code>shutdown_write</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> then the sending side of the connection
|
1474
1611
|
is shut down, and further writing is disallowed.
|
1475
1612
|
</p>
|
1476
1613
|
<p>
|
1477
|
-
It is allowed for both <em class="parameter"><code>shutdown_read</code></em> and <em class="parameter"><code>shutdown_write</code></em> to be <a href="/
|
1614
|
+
It is allowed for both <em class="parameter"><code>shutdown_read</code></em> and <em class="parameter"><code>shutdown_write</code></em> to be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
|
1478
1615
|
</p>
|
1479
1616
|
<p>
|
1480
1617
|
One example where this is used is graceful disconnect for TCP connections
|
@@ -1502,12 +1639,12 @@ the connection, thus ensuring that the other side saw all sent data.
|
|
1502
1639
|
<tr>
|
1503
1640
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1504
1641
|
<td>
|
1505
|
-
<a href="/
|
1642
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
1506
1643
|
</td>
|
1507
1644
|
</tr>
|
1508
1645
|
<tr>
|
1509
1646
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1510
|
-
<td> <a href="/
|
1647
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error
|
1511
1648
|
|
1512
1649
|
</td>
|
1513
1650
|
</tr>
|
@@ -1516,9 +1653,9 @@ the connection, thus ensuring that the other side saw all sent data.
|
|
1516
1653
|
<p class="since">Since 2.22</p>
|
1517
1654
|
</div>
|
1518
1655
|
<hr>
|
1519
|
-
<div class="refsect2"
|
1656
|
+
<div class="refsect2">
|
1520
1657
|
<a name="g-socket-is-connected"></a><h3>g_socket_is_connected ()</h3>
|
1521
|
-
<pre class="programlisting"><a href="/
|
1658
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_is_connected (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
1522
1659
|
<p>
|
1523
1660
|
Check whether the socket is connected. This is only useful for
|
1524
1661
|
connection-oriented sockets.
|
@@ -1533,7 +1670,7 @@ connection-oriented sockets.
|
|
1533
1670
|
</tr>
|
1534
1671
|
<tr>
|
1535
1672
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1536
|
-
<td> <a href="/
|
1673
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if socket is connected, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
|
1537
1674
|
|
1538
1675
|
</td>
|
1539
1676
|
</tr>
|
@@ -1542,29 +1679,36 @@ connection-oriented sockets.
|
|
1542
1679
|
<p class="since">Since 2.22</p>
|
1543
1680
|
</div>
|
1544
1681
|
<hr>
|
1545
|
-
<div class="refsect2"
|
1682
|
+
<div class="refsect2">
|
1546
1683
|
<a name="g-socket-create-source"></a><h3>g_socket_create_source ()</h3>
|
1547
|
-
<pre class="programlisting"><a href="/
|
1548
|
-
<em class="parameter"><code><a href="/
|
1684
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GSource"><span class="returnvalue">GSource</span></a> * g_socket_create_source (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1685
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
1549
1686
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>);</pre>
|
1550
1687
|
<p>
|
1551
|
-
Creates a <a href="/
|
1688
|
+
Creates a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GSource"><code class="literal">GSource</code></a> that can be attached to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainContext"><code class="literal">GMainContext</code></a> to monitor
|
1552
1689
|
for the availibility of the specified <em class="parameter"><code>condition</code></em> on the socket.
|
1553
1690
|
</p>
|
1554
1691
|
<p>
|
1555
1692
|
The callback on the source is of the <a class="link" href="GSocket.html#GSocketSourceFunc" title="GSocketSourceFunc ()"><span class="type">GSocketSourceFunc</span></a> type.
|
1556
1693
|
</p>
|
1557
1694
|
<p>
|
1558
|
-
It is meaningless to specify <a href="/
|
1695
|
+
It is meaningless to specify <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-ERR:CAPS"><code class="literal">G_IO_ERR</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-HUP:CAPS"><code class="literal">G_IO_HUP</code></a> in <em class="parameter"><code>condition</code></em>;
|
1559
1696
|
these conditions will always be reported output if they are true.
|
1560
1697
|
</p>
|
1561
1698
|
<p>
|
1562
|
-
<em class="parameter"><code>cancellable</code></em> if not <a href="/
|
1699
|
+
<em class="parameter"><code>cancellable</code></em> if not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> can be used to cancel the source, which will
|
1563
1700
|
cause the source to trigger, reporting the current condition (which
|
1564
1701
|
is likely 0 unless cancellation happened at the same time as a
|
1565
1702
|
condition change). You can check for this in the callback using
|
1566
1703
|
<a class="link" href="GCancellable.html#g-cancellable-is-cancelled" title="g_cancellable_is_cancelled ()"><code class="function">g_cancellable_is_cancelled()</code></a>.
|
1567
1704
|
</p>
|
1705
|
+
<p>
|
1706
|
+
If <em class="parameter"><code>socket</code></em> has a timeout set, and it is reached before <em class="parameter"><code>condition</code></em>
|
1707
|
+
occurs, the source will then trigger anyway, reporting <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-IN:CAPS"><code class="literal">G_IO_IN</code></a> or
|
1708
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-OUT:CAPS"><code class="literal">G_IO_OUT</code></a> depending on <em class="parameter"><code>condition</code></em>. However, <em class="parameter"><code>socket</code></em> will have been
|
1709
|
+
marked as having had a timeout, and so the next <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> I/O method
|
1710
|
+
you call will then fail with a <a class="link" href="gio-GIOError.html#G-IO-ERROR-TIMED-OUT:CAPS"><code class="literal">G_IO_ERROR_TIMED_OUT</code></a>.
|
1711
|
+
</p>
|
1568
1712
|
<div class="variablelist"><table border="0">
|
1569
1713
|
<col align="left" valign="top">
|
1570
1714
|
<tbody>
|
@@ -1575,17 +1719,17 @@ condition change). You can check for this in the callback using
|
|
1575
1719
|
</tr>
|
1576
1720
|
<tr>
|
1577
1721
|
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1578
|
-
<td>a <a href="/
|
1722
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> mask to monitor
|
1579
1723
|
</td>
|
1580
1724
|
</tr>
|
1581
1725
|
<tr>
|
1582
1726
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
1583
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="/
|
1727
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><code class="literal">GCancellable</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1584
1728
|
</td>
|
1585
1729
|
</tr>
|
1586
1730
|
<tr>
|
1587
1731
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1588
|
-
<td> a newly allocated <a href="/
|
1732
|
+
<td> a newly allocated <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GSource"><code class="literal">GSource</code></a>, free with <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-source-unref"><code class="function">g_source_unref()</code></a>.
|
1589
1733
|
|
1590
1734
|
</td>
|
1591
1735
|
</tr>
|
@@ -1594,10 +1738,10 @@ condition change). You can check for this in the callback using
|
|
1594
1738
|
<p class="since">Since 2.22</p>
|
1595
1739
|
</div>
|
1596
1740
|
<hr>
|
1597
|
-
<div class="refsect2"
|
1741
|
+
<div class="refsect2">
|
1598
1742
|
<a name="g-socket-condition-check"></a><h3>g_socket_condition_check ()</h3>
|
1599
|
-
<pre class="programlisting"><a href="/
|
1600
|
-
<em class="parameter"><code><a href="/
|
1743
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="returnvalue">GIOCondition</span></a> g_socket_condition_check (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1744
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>);</pre>
|
1601
1745
|
<p>
|
1602
1746
|
Checks on the readiness of <em class="parameter"><code>socket</code></em> to perform operations.
|
1603
1747
|
The operations specified in <em class="parameter"><code>condition</code></em> are checked for and masked
|
@@ -1605,7 +1749,16 @@ against the currently-satisfied conditions on <em class="parameter"><code>socket
|
|
1605
1749
|
is returned.
|
1606
1750
|
</p>
|
1607
1751
|
<p>
|
1608
|
-
|
1752
|
+
Note that on Windows, it is possible for an operation to return
|
1753
|
+
<a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a> even immediately after
|
1754
|
+
<a class="link" href="GSocket.html#g-socket-condition-check" title="g_socket_condition_check ()"><code class="function">g_socket_condition_check()</code></a> has claimed that the socket is ready for
|
1755
|
+
writing. Rather than calling <a class="link" href="GSocket.html#g-socket-condition-check" title="g_socket_condition_check ()"><code class="function">g_socket_condition_check()</code></a> and then
|
1756
|
+
writing to the socket if it succeeds, it is generally better to
|
1757
|
+
simply try writing to the socket right away, and try again later if
|
1758
|
+
the initial attempt returns <a class="link" href="gio-GIOError.html#G-IO-ERROR-WOULD-BLOCK:CAPS"><code class="literal">G_IO_ERROR_WOULD_BLOCK</code></a>.
|
1759
|
+
</p>
|
1760
|
+
<p>
|
1761
|
+
It is meaningless to specify <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-ERR:CAPS"><code class="literal">G_IO_ERR</code></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#G-IO-HUP:CAPS"><code class="literal">G_IO_HUP</code></a> in condition;
|
1609
1762
|
these conditions will always be set in the output if they are true.
|
1610
1763
|
</p>
|
1611
1764
|
<p>
|
@@ -1621,7 +1774,7 @@ This call never blocks.
|
|
1621
1774
|
</tr>
|
1622
1775
|
<tr>
|
1623
1776
|
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1624
|
-
<td>a <a href="/
|
1777
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> mask to check
|
1625
1778
|
</td>
|
1626
1779
|
</tr>
|
1627
1780
|
<tr>
|
@@ -1635,19 +1788,22 @@ This call never blocks.
|
|
1635
1788
|
<p class="since">Since 2.22</p>
|
1636
1789
|
</div>
|
1637
1790
|
<hr>
|
1638
|
-
<div class="refsect2"
|
1791
|
+
<div class="refsect2">
|
1639
1792
|
<a name="g-socket-condition-wait"></a><h3>g_socket_condition_wait ()</h3>
|
1640
|
-
<pre class="programlisting"><a href="/
|
1641
|
-
<em class="parameter"><code><a href="/
|
1793
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_condition_wait (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1794
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
1642
1795
|
<em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
1643
|
-
<em class="parameter"><code><a href="/
|
1796
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1644
1797
|
<p>
|
1645
1798
|
Waits for <em class="parameter"><code>condition</code></em> to become true on <em class="parameter"><code>socket</code></em>. When the condition
|
1646
|
-
is met, <a href="/
|
1799
|
+
is met, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned.
|
1647
1800
|
</p>
|
1648
1801
|
<p>
|
1649
|
-
If <em class="parameter"><code>cancellable</code></em> is cancelled before the condition is met
|
1650
|
-
|
1802
|
+
If <em class="parameter"><code>cancellable</code></em> is cancelled before the condition is met, or if the
|
1803
|
+
socket has a timeout set and it is reached before the condition is
|
1804
|
+
met, then <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and <em class="parameter"><code>error</code></em>, if non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, is set to
|
1805
|
+
the appropriate value (<a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> or
|
1806
|
+
<a class="link" href="gio-GIOError.html#G-IO-ERROR-TIMED-OUT:CAPS"><code class="literal">G_IO_ERROR_TIMED_OUT</code></a>).
|
1651
1807
|
</p>
|
1652
1808
|
<div class="variablelist"><table border="0">
|
1653
1809
|
<col align="left" valign="top">
|
@@ -1659,22 +1815,22 @@ is returned and <em class="parameter"><code>error</code></em>, if non-<a href="/
|
|
1659
1815
|
</tr>
|
1660
1816
|
<tr>
|
1661
1817
|
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1662
|
-
<td>a <a href="/
|
1818
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-IO-Channels.html#GIOCondition"><span class="type">GIOCondition</span></a> mask to wait for
|
1663
1819
|
</td>
|
1664
1820
|
</tr>
|
1665
1821
|
<tr>
|
1666
1822
|
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
|
1667
|
-
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a>, or <a href="/
|
1823
|
+
<td>a <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1668
1824
|
</td>
|
1669
1825
|
</tr>
|
1670
1826
|
<tr>
|
1671
1827
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1672
|
-
<td>a <a href="/
|
1828
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> pointer, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
1673
1829
|
</td>
|
1674
1830
|
</tr>
|
1675
1831
|
<tr>
|
1676
1832
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1677
|
-
<td> <a href="/
|
1833
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the condition was met, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise
|
1678
1834
|
|
1679
1835
|
</td>
|
1680
1836
|
</tr>
|
@@ -1683,10 +1839,10 @@ is returned and <em class="parameter"><code>error</code></em>, if non-<a href="/
|
|
1683
1839
|
<p class="since">Since 2.22</p>
|
1684
1840
|
</div>
|
1685
1841
|
<hr>
|
1686
|
-
<div class="refsect2"
|
1842
|
+
<div class="refsect2">
|
1687
1843
|
<a name="g-socket-set-listen-backlog"></a><h3>g_socket_set_listen_backlog ()</h3>
|
1688
1844
|
<pre class="programlisting"><span class="returnvalue">void</span> g_socket_set_listen_backlog (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1689
|
-
<em class="parameter"><code><a href="/
|
1845
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> backlog</code></em>);</pre>
|
1690
1846
|
<p>
|
1691
1847
|
Sets the maximum number of outstanding connections allowed
|
1692
1848
|
when listening on this socket. If more clients than this are
|
@@ -1715,9 +1871,9 @@ effect if called after that.
|
|
1715
1871
|
<p class="since">Since 2.22</p>
|
1716
1872
|
</div>
|
1717
1873
|
<hr>
|
1718
|
-
<div class="refsect2"
|
1874
|
+
<div class="refsect2">
|
1719
1875
|
<a name="g-socket-get-listen-backlog"></a><h3>g_socket_get_listen_backlog ()</h3>
|
1720
|
-
<pre class="programlisting"><a href="/
|
1876
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> g_socket_get_listen_backlog (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
1721
1877
|
<p>
|
1722
1878
|
Gets the listen backlog setting of the socket. For details on this,
|
1723
1879
|
see <a class="link" href="GSocket.html#g-socket-set-listen-backlog" title="g_socket_set_listen_backlog ()"><code class="function">g_socket_set_listen_backlog()</code></a>.
|
@@ -1741,9 +1897,9 @@ see <a class="link" href="GSocket.html#g-socket-set-listen-backlog" title="g_soc
|
|
1741
1897
|
<p class="since">Since 2.22</p>
|
1742
1898
|
</div>
|
1743
1899
|
<hr>
|
1744
|
-
<div class="refsect2"
|
1900
|
+
<div class="refsect2">
|
1745
1901
|
<a name="g-socket-get-blocking"></a><h3>g_socket_get_blocking ()</h3>
|
1746
|
-
<pre class="programlisting"><a href="/
|
1902
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_get_blocking (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
1747
1903
|
<p>
|
1748
1904
|
Gets the blocking mode of the socket. For details on blocking I/O,
|
1749
1905
|
see <a class="link" href="GSocket.html#g-socket-set-blocking" title="g_socket_set_blocking ()"><code class="function">g_socket_set_blocking()</code></a>.
|
@@ -1758,7 +1914,7 @@ see <a class="link" href="GSocket.html#g-socket-set-blocking" title="g_socket_se
|
|
1758
1914
|
</tr>
|
1759
1915
|
<tr>
|
1760
1916
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1761
|
-
<td> <a href="/
|
1917
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if blocking I/O is used, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
|
1762
1918
|
|
1763
1919
|
</td>
|
1764
1920
|
</tr>
|
@@ -1767,10 +1923,10 @@ see <a class="link" href="GSocket.html#g-socket-set-blocking" title="g_socket_se
|
|
1767
1923
|
<p class="since">Since 2.22</p>
|
1768
1924
|
</div>
|
1769
1925
|
<hr>
|
1770
|
-
<div class="refsect2"
|
1926
|
+
<div class="refsect2">
|
1771
1927
|
<a name="g-socket-set-blocking"></a><h3>g_socket_set_blocking ()</h3>
|
1772
1928
|
<pre class="programlisting"><span class="returnvalue">void</span> g_socket_set_blocking (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1773
|
-
<em class="parameter"><code><a href="/
|
1929
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> blocking</code></em>);</pre>
|
1774
1930
|
<p>
|
1775
1931
|
Sets the blocking mode of the socket. In blocking mode
|
1776
1932
|
all operations block until they succeed or there is an error. In
|
@@ -1800,9 +1956,9 @@ is a GSocket level feature.
|
|
1800
1956
|
<p class="since">Since 2.22</p>
|
1801
1957
|
</div>
|
1802
1958
|
<hr>
|
1803
|
-
<div class="refsect2"
|
1959
|
+
<div class="refsect2">
|
1804
1960
|
<a name="g-socket-get-keepalive"></a><h3>g_socket_get_keepalive ()</h3>
|
1805
|
-
<pre class="programlisting"><a href="/
|
1961
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_get_keepalive (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
1806
1962
|
<p>
|
1807
1963
|
Gets the keepalive mode of the socket. For details on this,
|
1808
1964
|
see <a class="link" href="GSocket.html#g-socket-set-keepalive" title="g_socket_set_keepalive ()"><code class="function">g_socket_set_keepalive()</code></a>.
|
@@ -1817,7 +1973,7 @@ see <a class="link" href="GSocket.html#g-socket-set-keepalive" title="g_socket_s
|
|
1817
1973
|
</tr>
|
1818
1974
|
<tr>
|
1819
1975
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1820
|
-
<td> <a href="/
|
1976
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if keepalive is active, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
|
1821
1977
|
|
1822
1978
|
</td>
|
1823
1979
|
</tr>
|
@@ -1826,10 +1982,10 @@ see <a class="link" href="GSocket.html#g-socket-set-keepalive" title="g_socket_s
|
|
1826
1982
|
<p class="since">Since 2.22</p>
|
1827
1983
|
</div>
|
1828
1984
|
<hr>
|
1829
|
-
<div class="refsect2"
|
1985
|
+
<div class="refsect2">
|
1830
1986
|
<a name="g-socket-set-keepalive"></a><h3>g_socket_set_keepalive ()</h3>
|
1831
1987
|
<pre class="programlisting"><span class="returnvalue">void</span> g_socket_set_keepalive (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
1832
|
-
<em class="parameter"><code><a href="/
|
1988
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> keepalive</code></em>);</pre>
|
1833
1989
|
<p>
|
1834
1990
|
Sets or unsets the <code class="literal">SO_KEEPALIVE</code> flag on the underlying socket. When
|
1835
1991
|
this flag is set on a socket, the system will attempt to verify that the
|
@@ -1867,7 +2023,81 @@ garbage-collected if clients crash or become unreachable.
|
|
1867
2023
|
<p class="since">Since 2.22</p>
|
1868
2024
|
</div>
|
1869
2025
|
<hr>
|
1870
|
-
<div class="refsect2"
|
2026
|
+
<div class="refsect2">
|
2027
|
+
<a name="g-socket-get-timeout"></a><h3>g_socket_get_timeout ()</h3>
|
2028
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> g_socket_get_timeout (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
2029
|
+
<p>
|
2030
|
+
Gets the timeout setting of the socket. For details on this, see
|
2031
|
+
<a class="link" href="GSocket.html#g-socket-set-timeout" title="g_socket_set_timeout ()"><code class="function">g_socket_set_timeout()</code></a>.
|
2032
|
+
</p>
|
2033
|
+
<div class="variablelist"><table border="0">
|
2034
|
+
<col align="left" valign="top">
|
2035
|
+
<tbody>
|
2036
|
+
<tr>
|
2037
|
+
<td><p><span class="term"><em class="parameter"><code>socket</code></em> :</span></p></td>
|
2038
|
+
<td>a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a>.
|
2039
|
+
</td>
|
2040
|
+
</tr>
|
2041
|
+
<tr>
|
2042
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2043
|
+
<td> the timeout in seconds
|
2044
|
+
|
2045
|
+
</td>
|
2046
|
+
</tr>
|
2047
|
+
</tbody>
|
2048
|
+
</table></div>
|
2049
|
+
<p class="since">Since 2.26</p>
|
2050
|
+
</div>
|
2051
|
+
<hr>
|
2052
|
+
<div class="refsect2">
|
2053
|
+
<a name="g-socket-set-timeout"></a><h3>g_socket_set_timeout ()</h3>
|
2054
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_socket_set_timeout (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
2055
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>);</pre>
|
2056
|
+
<p>
|
2057
|
+
Sets the time in seconds after which I/O operations on <em class="parameter"><code>socket</code></em> will
|
2058
|
+
time out if they have not yet completed.
|
2059
|
+
</p>
|
2060
|
+
<p>
|
2061
|
+
On a blocking socket, this means that any blocking <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a>
|
2062
|
+
operation will time out after <em class="parameter"><code>timeout</code></em> seconds of inactivity,
|
2063
|
+
returning <a class="link" href="gio-GIOError.html#G-IO-ERROR-TIMED-OUT:CAPS"><code class="literal">G_IO_ERROR_TIMED_OUT</code></a>.
|
2064
|
+
</p>
|
2065
|
+
<p>
|
2066
|
+
On a non-blocking socket, calls to <a class="link" href="GSocket.html#g-socket-condition-wait" title="g_socket_condition_wait ()"><code class="function">g_socket_condition_wait()</code></a> will
|
2067
|
+
also fail with <a class="link" href="gio-GIOError.html#G-IO-ERROR-TIMED-OUT:CAPS"><code class="literal">G_IO_ERROR_TIMED_OUT</code></a> after the given time. Sources
|
2068
|
+
created with <a class="link" href="GSocket.html#g-socket-create-source" title="g_socket_create_source ()"><code class="function">g_socket_create_source()</code></a> will trigger after
|
2069
|
+
<em class="parameter"><code>timeout</code></em> seconds of inactivity, with the requested condition
|
2070
|
+
set, at which point calling <a class="link" href="GSocket.html#g-socket-receive" title="g_socket_receive ()"><code class="function">g_socket_receive()</code></a>, <a class="link" href="GSocket.html#g-socket-send" title="g_socket_send ()"><code class="function">g_socket_send()</code></a>,
|
2071
|
+
<a class="link" href="GSocket.html#g-socket-check-connect-result" title="g_socket_check_connect_result ()"><code class="function">g_socket_check_connect_result()</code></a>, etc, will fail with
|
2072
|
+
<a class="link" href="gio-GIOError.html#G-IO-ERROR-TIMED-OUT:CAPS"><code class="literal">G_IO_ERROR_TIMED_OUT</code></a>.
|
2073
|
+
</p>
|
2074
|
+
<p>
|
2075
|
+
If <em class="parameter"><code>timeout</code></em> is 0 (the default), operations will never time out
|
2076
|
+
on their own.
|
2077
|
+
</p>
|
2078
|
+
<p>
|
2079
|
+
Note that if an I/O operation is interrupted by a signal, this may
|
2080
|
+
cause the timeout to be reset.
|
2081
|
+
</p>
|
2082
|
+
<div class="variablelist"><table border="0">
|
2083
|
+
<col align="left" valign="top">
|
2084
|
+
<tbody>
|
2085
|
+
<tr>
|
2086
|
+
<td><p><span class="term"><em class="parameter"><code>socket</code></em> :</span></p></td>
|
2087
|
+
<td>a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a>.
|
2088
|
+
</td>
|
2089
|
+
</tr>
|
2090
|
+
<tr>
|
2091
|
+
<td><p><span class="term"><em class="parameter"><code>timeout</code></em> :</span></p></td>
|
2092
|
+
<td>the timeout for <em class="parameter"><code>socket</code></em>, in seconds, or 0 for none
|
2093
|
+
</td>
|
2094
|
+
</tr>
|
2095
|
+
</tbody>
|
2096
|
+
</table></div>
|
2097
|
+
<p class="since">Since 2.26</p>
|
2098
|
+
</div>
|
2099
|
+
<hr>
|
2100
|
+
<div class="refsect2">
|
1871
2101
|
<a name="g-socket-get-family"></a><h3>g_socket_get_family ()</h3>
|
1872
2102
|
<pre class="programlisting"><a class="link" href="GSocketAddress.html#GSocketFamily" title="enum GSocketFamily"><span class="returnvalue">GSocketFamily</span></a> g_socket_get_family (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
1873
2103
|
<p>
|
@@ -1892,7 +2122,7 @@ Gets the socket family of the socket.
|
|
1892
2122
|
<p class="since">Since 2.22</p>
|
1893
2123
|
</div>
|
1894
2124
|
<hr>
|
1895
|
-
<div class="refsect2"
|
2125
|
+
<div class="refsect2">
|
1896
2126
|
<a name="g-socket-get-fd"></a><h3>g_socket_get_fd ()</h3>
|
1897
2127
|
<pre class="programlisting"><span class="returnvalue">int</span> g_socket_get_fd (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
1898
2128
|
<p>
|
@@ -1921,10 +2151,10 @@ on the socket.
|
|
1921
2151
|
<p class="since">Since 2.22</p>
|
1922
2152
|
</div>
|
1923
2153
|
<hr>
|
1924
|
-
<div class="refsect2"
|
2154
|
+
<div class="refsect2">
|
1925
2155
|
<a name="g-socket-get-local-address"></a><h3>g_socket_get_local_address ()</h3>
|
1926
|
-
<pre class="programlisting"><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="returnvalue">GSocketAddress</span></a> *
|
1927
|
-
<em class="parameter"><code><a href="/
|
2156
|
+
<pre class="programlisting"><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="returnvalue">GSocketAddress</span></a> * g_socket_get_local_address (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
2157
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1928
2158
|
<p>
|
1929
2159
|
Try to get the local address of a bound socket. This is only
|
1930
2160
|
useful if the socket has been bound to a local address,
|
@@ -1941,13 +2171,13 @@ either explicitly or implicitly when connecting.
|
|
1941
2171
|
<tr>
|
1942
2172
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1943
2173
|
<td>
|
1944
|
-
<a href="/
|
2174
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
1945
2175
|
</td>
|
1946
2176
|
</tr>
|
1947
2177
|
<tr>
|
1948
2178
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1949
|
-
<td> a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> or <a href="/
|
1950
|
-
Free the returned object with <a href="/
|
2179
|
+
<td> a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.
|
2180
|
+
Free the returned object with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.
|
1951
2181
|
|
1952
2182
|
</td>
|
1953
2183
|
</tr>
|
@@ -1956,7 +2186,7 @@ either explicitly or implicitly when connecting.
|
|
1956
2186
|
<p class="since">Since 2.22</p>
|
1957
2187
|
</div>
|
1958
2188
|
<hr>
|
1959
|
-
<div class="refsect2"
|
2189
|
+
<div class="refsect2">
|
1960
2190
|
<a name="g-socket-get-protocol"></a><h3>g_socket_get_protocol ()</h3>
|
1961
2191
|
<pre class="programlisting"><a class="link" href="GSocket.html#GSocketProtocol" title="enum GSocketProtocol"><span class="returnvalue">GSocketProtocol</span></a> g_socket_get_protocol (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
1962
2192
|
<p>
|
@@ -1982,10 +2212,10 @@ In case the protocol is unknown, -1 is returned.
|
|
1982
2212
|
<p class="since">Since 2.22</p>
|
1983
2213
|
</div>
|
1984
2214
|
<hr>
|
1985
|
-
<div class="refsect2"
|
2215
|
+
<div class="refsect2">
|
1986
2216
|
<a name="g-socket-get-remote-address"></a><h3>g_socket_get_remote_address ()</h3>
|
1987
|
-
<pre class="programlisting"><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="returnvalue">GSocketAddress</span></a> *
|
1988
|
-
<em class="parameter"><code><a href="/
|
2217
|
+
<pre class="programlisting"><a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="returnvalue">GSocketAddress</span></a> * g_socket_get_remote_address (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
2218
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1989
2219
|
<p>
|
1990
2220
|
Try to get the remove address of a connected socket. This is only
|
1991
2221
|
useful for connection oriented sockets that have been connected.
|
@@ -2001,13 +2231,13 @@ useful for connection oriented sockets that have been connected.
|
|
2001
2231
|
<tr>
|
2002
2232
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
2003
2233
|
<td>
|
2004
|
-
<a href="/
|
2234
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
2005
2235
|
</td>
|
2006
2236
|
</tr>
|
2007
2237
|
<tr>
|
2008
2238
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2009
|
-
<td> a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> or <a href="/
|
2010
|
-
Free the returned object with <a href="/
|
2239
|
+
<td> a <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.
|
2240
|
+
Free the returned object with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.
|
2011
2241
|
|
2012
2242
|
</td>
|
2013
2243
|
</tr>
|
@@ -2016,7 +2246,7 @@ useful for connection oriented sockets that have been connected.
|
|
2016
2246
|
<p class="since">Since 2.22</p>
|
2017
2247
|
</div>
|
2018
2248
|
<hr>
|
2019
|
-
<div class="refsect2"
|
2249
|
+
<div class="refsect2">
|
2020
2250
|
<a name="g-socket-get-socket-type"></a><h3>g_socket_get_socket_type ()</h3>
|
2021
2251
|
<pre class="programlisting"><a class="link" href="GSocket.html#GSocketType" title="enum GSocketType"><span class="returnvalue">GSocketType</span></a> g_socket_get_socket_type (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
2022
2252
|
<p>
|
@@ -2041,9 +2271,9 @@ Gets the socket type of the socket.
|
|
2041
2271
|
<p class="since">Since 2.22</p>
|
2042
2272
|
</div>
|
2043
2273
|
<hr>
|
2044
|
-
<div class="refsect2"
|
2274
|
+
<div class="refsect2">
|
2045
2275
|
<a name="g-socket-speaks-ipv4"></a><h3>g_socket_speaks_ipv4 ()</h3>
|
2046
|
-
<pre class="programlisting"><a href="/
|
2276
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_socket_speaks_ipv4 (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>);</pre>
|
2047
2277
|
<p>
|
2048
2278
|
Checks if a socket is capable of speaking IPv4.
|
2049
2279
|
</p>
|
@@ -2067,7 +2297,7 @@ of speaking IPv4.
|
|
2067
2297
|
</tr>
|
2068
2298
|
<tr>
|
2069
2299
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2070
|
-
<td> <a href="/
|
2300
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if this socket can be used with IPv4.
|
2071
2301
|
|
2072
2302
|
</td>
|
2073
2303
|
</tr>
|
@@ -2075,78 +2305,134 @@ of speaking IPv4.
|
|
2075
2305
|
</table></div>
|
2076
2306
|
<p class="since">Since 2.22</p>
|
2077
2307
|
</div>
|
2308
|
+
<hr>
|
2309
|
+
<div class="refsect2">
|
2310
|
+
<a name="g-socket-get-credentials"></a><h3>g_socket_get_credentials ()</h3>
|
2311
|
+
<pre class="programlisting"><a class="link" href="GCredentials.html" title="GCredentials"><span class="returnvalue">GCredentials</span></a> * g_socket_get_credentials (<em class="parameter"><code><a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a> *socket</code></em>,
|
2312
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
2313
|
+
<p>
|
2314
|
+
Returns the credentials of the foreign process connected to this
|
2315
|
+
socket, if any (e.g. it is only supported for <a class="link" href="GSocketAddress.html#G-SOCKET-FAMILY-UNIX:CAPS"><code class="literal">G_SOCKET_FAMILY_UNIX</code></a>
|
2316
|
+
sockets).
|
2317
|
+
</p>
|
2318
|
+
<p>
|
2319
|
+
If this operation isn't supported on the OS, the method fails with
|
2320
|
+
the <a class="link" href="gio-GIOError.html#G-IO-ERROR-NOT-SUPPORTED:CAPS"><code class="literal">G_IO_ERROR_NOT_SUPPORTED</code></a> error. On Linux this is implemented
|
2321
|
+
by reading the <code class="literal">SO_PEERCRED</code> option on the underlying socket.
|
2322
|
+
</p>
|
2323
|
+
<p>
|
2324
|
+
Other ways to obtain credentials from a foreign peer includes the
|
2325
|
+
<a class="link" href="GUnixCredentialsMessage.html" title="GUnixCredentialsMessage"><span class="type">GUnixCredentialsMessage</span></a> type and
|
2326
|
+
<a class="link" href="GUnixConnection.html#g-unix-connection-send-credentials" title="g_unix_connection_send_credentials ()"><code class="function">g_unix_connection_send_credentials()</code></a> /
|
2327
|
+
<a class="link" href="GUnixConnection.html#g-unix-connection-receive-credentials" title="g_unix_connection_receive_credentials ()"><code class="function">g_unix_connection_receive_credentials()</code></a> functions.
|
2328
|
+
</p>
|
2329
|
+
<div class="variablelist"><table border="0">
|
2330
|
+
<col align="left" valign="top">
|
2331
|
+
<tbody>
|
2332
|
+
<tr>
|
2333
|
+
<td><p><span class="term"><em class="parameter"><code>socket</code></em> :</span></p></td>
|
2334
|
+
<td>a <a class="link" href="GSocket.html" title="GSocket"><span class="type">GSocket</span></a>.
|
2335
|
+
</td>
|
2336
|
+
</tr>
|
2337
|
+
<tr>
|
2338
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
2339
|
+
<td>
|
2340
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
2341
|
+
</td>
|
2342
|
+
</tr>
|
2343
|
+
<tr>
|
2344
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2345
|
+
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set, otherwise a <a class="link" href="GCredentials.html" title="GCredentials"><span class="type">GCredentials</span></a> object
|
2346
|
+
that must be freed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.
|
2347
|
+
|
2348
|
+
</td>
|
2349
|
+
</tr>
|
2350
|
+
</tbody>
|
2351
|
+
</table></div>
|
2352
|
+
<p class="since">Since 2.26</p>
|
2078
2353
|
</div>
|
2079
|
-
|
2354
|
+
</div>
|
2355
|
+
<div class="refsect1">
|
2080
2356
|
<a name="GSocket.property-details"></a><h2>Property Details</h2>
|
2081
|
-
<div class="refsect2"
|
2357
|
+
<div class="refsect2">
|
2082
2358
|
<a name="GSocket--blocking"></a><h3>The <code class="literal">"blocking"</code> property</h3>
|
2083
|
-
<pre class="programlisting"> "blocking" <a href="/
|
2359
|
+
<pre class="programlisting"> "blocking" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
|
2084
2360
|
<p>Whether or not I/O on this socket is blocking.</p>
|
2085
2361
|
<p>Default value: TRUE</p>
|
2086
2362
|
</div>
|
2087
2363
|
<hr>
|
2088
|
-
<div class="refsect2"
|
2364
|
+
<div class="refsect2">
|
2089
2365
|
<a name="GSocket--family"></a><h3>The <code class="literal">"family"</code> property</h3>
|
2090
2366
|
<pre class="programlisting"> "family" <a class="link" href="GSocketAddress.html#GSocketFamily" title="enum GSocketFamily"><span class="type">GSocketFamily</span></a> : Read / Write / Construct Only</pre>
|
2091
2367
|
<p>The sockets address family.</p>
|
2092
2368
|
<p>Default value: G_SOCKET_FAMILY_INVALID</p>
|
2093
2369
|
</div>
|
2094
2370
|
<hr>
|
2095
|
-
<div class="refsect2"
|
2371
|
+
<div class="refsect2">
|
2096
2372
|
<a name="GSocket--fd"></a><h3>The <code class="literal">"fd"</code> property</h3>
|
2097
|
-
<pre class="programlisting"> "fd" <a href="/
|
2373
|
+
<pre class="programlisting"> "fd" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only</pre>
|
2098
2374
|
<p>The sockets file descriptor.</p>
|
2099
2375
|
<p>Default value: -1</p>
|
2100
2376
|
</div>
|
2101
2377
|
<hr>
|
2102
|
-
<div class="refsect2"
|
2378
|
+
<div class="refsect2">
|
2103
2379
|
<a name="GSocket--keepalive"></a><h3>The <code class="literal">"keepalive"</code> property</h3>
|
2104
|
-
<pre class="programlisting"> "keepalive" <a href="/
|
2380
|
+
<pre class="programlisting"> "keepalive" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
|
2105
2381
|
<p>Keep connection alive by sending periodic pings.</p>
|
2106
2382
|
<p>Default value: FALSE</p>
|
2107
2383
|
</div>
|
2108
2384
|
<hr>
|
2109
|
-
<div class="refsect2"
|
2385
|
+
<div class="refsect2">
|
2110
2386
|
<a name="GSocket--listen-backlog"></a><h3>The <code class="literal">"listen-backlog"</code> property</h3>
|
2111
|
-
<pre class="programlisting"> "listen-backlog" <a href="/
|
2387
|
+
<pre class="programlisting"> "listen-backlog" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
|
2112
2388
|
<p>Outstanding connections in the listen queue.</p>
|
2113
2389
|
<p>Allowed values: [0,128]</p>
|
2114
2390
|
<p>Default value: 10</p>
|
2115
2391
|
</div>
|
2116
2392
|
<hr>
|
2117
|
-
<div class="refsect2"
|
2393
|
+
<div class="refsect2">
|
2118
2394
|
<a name="GSocket--local-address"></a><h3>The <code class="literal">"local-address"</code> property</h3>
|
2119
2395
|
<pre class="programlisting"> "local-address" <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a>* : Read</pre>
|
2120
2396
|
<p>The local address the socket is bound to.</p>
|
2121
2397
|
</div>
|
2122
2398
|
<hr>
|
2123
|
-
<div class="refsect2"
|
2399
|
+
<div class="refsect2">
|
2124
2400
|
<a name="GSocket--protocol"></a><h3>The <code class="literal">"protocol"</code> property</h3>
|
2125
2401
|
<pre class="programlisting"> "protocol" <a class="link" href="GSocket.html#GSocketProtocol" title="enum GSocketProtocol"><span class="type">GSocketProtocol</span></a> : Read / Write / Construct Only</pre>
|
2126
2402
|
<p>The id of the protocol to use, or -1 for unknown.</p>
|
2127
2403
|
<p>Default value: G_SOCKET_PROTOCOL_UNKNOWN</p>
|
2128
2404
|
</div>
|
2129
2405
|
<hr>
|
2130
|
-
<div class="refsect2"
|
2406
|
+
<div class="refsect2">
|
2131
2407
|
<a name="GSocket--remote-address"></a><h3>The <code class="literal">"remote-address"</code> property</h3>
|
2132
2408
|
<pre class="programlisting"> "remote-address" <a class="link" href="GSocketAddress.html" title="GSocketAddress"><span class="type">GSocketAddress</span></a>* : Read</pre>
|
2133
2409
|
<p>The remote address the socket is connected to.</p>
|
2134
2410
|
</div>
|
2135
2411
|
<hr>
|
2136
|
-
<div class="refsect2"
|
2412
|
+
<div class="refsect2">
|
2413
|
+
<a name="GSocket--timeout"></a><h3>The <code class="literal">"timeout"</code> property</h3>
|
2414
|
+
<pre class="programlisting"> "timeout" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write</pre>
|
2415
|
+
<p>
|
2416
|
+
The timeout in seconds on socket I/O
|
2417
|
+
</p>
|
2418
|
+
<p>Default value: 0</p>
|
2419
|
+
<p class="since">Since 2.26</p>
|
2420
|
+
</div>
|
2421
|
+
<hr>
|
2422
|
+
<div class="refsect2">
|
2137
2423
|
<a name="GSocket--type"></a><h3>The <code class="literal">"type"</code> property</h3>
|
2138
2424
|
<pre class="programlisting"> "type" <a class="link" href="GSocket.html#GSocketType" title="enum GSocketType"><span class="type">GSocketType</span></a> : Read / Write / Construct Only</pre>
|
2139
2425
|
<p>The sockets type.</p>
|
2140
2426
|
<p>Default value: G_SOCKET_TYPE_STREAM</p>
|
2141
2427
|
</div>
|
2142
2428
|
</div>
|
2143
|
-
<div class="refsect1"
|
2429
|
+
<div class="refsect1">
|
2144
2430
|
<a name="GSocket.see-also"></a><h2>See Also</h2>
|
2145
2431
|
<a class="link" href="GInitable.html" title="GInitable"><span class="type">GInitable</span></a>
|
2146
2432
|
</div>
|
2147
2433
|
</div>
|
2148
2434
|
<div class="footer">
|
2149
2435
|
<hr>
|
2150
|
-
Generated by GTK-Doc V1.
|
2436
|
+
Generated by GTK-Doc V1.15.1</div>
|
2151
2437
|
</body>
|
2152
2438
|
</html>
|