~ubuntu-branches/ubuntu/vivid/glib2.0/vivid-proposed

« back to all changes in this revision

Viewing changes to docs/reference/gio/html/GProxy.html

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-03-24 20:58:34 UTC
  • mfrom: (1.66.13)
  • Revision ID: package-import@ubuntu.com-20140324205834-8hsgok8k36ftocqa
Tags: 2.40.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
</tr>
76
76
<tr>
77
77
<td class="function_type">
78
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
78
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
79
79
</td>
80
80
<td class="function_name">
81
81
<a class="link" href="GProxy.html#g-proxy-supports-hostname" title="g_proxy_supports_hostname ()">g_proxy_supports_hostname</a> <span class="c_punctuation">()</span>
109
109
</div>
110
110
<div class="refsect1">
111
111
<a name="GProxy.object-hierarchy"></a><h2>Object Hierarchy</h2>
112
 
<pre class="screen">    <a href="/home/desrt/.cache/jhbuild/install/share/gtk-doc/html/gobject/GTypeModule.html">GInterface</a>
 
112
<pre class="screen">    <a href="http://library.gnome.org/devel/gobject/unstable/GTypeModule.html">GInterface</a>
113
113
    <span class="lineart">╰──</span> GProxy
114
114
</pre>
115
115
</div>
117
117
<a name="GProxy.prerequisites"></a><h2>Prerequisites</h2>
118
118
<p>
119
119
GProxy requires
120
 
 <a href="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>.</p>
 
120
 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>.</p>
121
121
</div>
122
122
<div class="refsect1">
123
123
<a name="GProxy.includes"></a><h2>Includes</h2>
142
142
                 <em class="parameter"><code><a class="link" href="GIOStream.html" title="GIOStream"><span class="type">GIOStream</span></a> *connection</code></em>,
143
143
                 <em class="parameter"><code><a class="link" href="GProxyAddress.html" title="GProxyAddress"><span class="type">GProxyAddress</span></a> *proxy_address</code></em>,
144
144
                 <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
145
 
                 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
145
                 <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>
146
146
<p>Given <em class="parameter"><code>connection</code></em>
147
147
 to communicate with a proxy (eg, a
148
148
<a class="link" href="GSocketConnection.html" title="GSocketConnection"><span class="type">GSocketConnection</span></a> that is connected to the proxy server), this
180
180
</tr>
181
181
<tr>
182
182
<td class="parameter_name"><p>error</p></td>
183
 
<td class="parameter_description"><p>return <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></p></td>
 
183
<td class="parameter_description"><p>return <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></p></td>
184
184
<td class="parameter_annotations"> </td>
185
185
</tr>
186
186
</tbody>
206
206
                       <em class="parameter"><code><a class="link" href="GProxyAddress.html" title="GProxyAddress"><span class="type">GProxyAddress</span></a> *proxy_address</code></em>,
207
207
                       <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
208
208
                       <em class="parameter"><code><a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
209
 
                       <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
 
209
                       <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>
210
210
<p>Asynchronous version of <a class="link" href="GProxy.html#g-proxy-connect" title="g_proxy_connect ()"><code class="function">g_proxy_connect()</code></a>.</p>
211
211
<div class="refsect3">
212
212
<a name="id-1.4.13.13.9.3.5"></a><h4>Parameters</h4>
258
258
<pre class="programlisting"><a class="link" href="GIOStream.html" title="GIOStream"><span class="returnvalue">GIOStream</span></a> *
259
259
g_proxy_connect_finish (<em class="parameter"><code><a class="link" href="GProxy.html" title="GProxy"><span class="type">GProxy</span></a> *proxy</code></em>,
260
260
                        <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *result</code></em>,
261
 
                        <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
261
                        <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>
262
262
<p>See <a class="link" href="GProxy.html#g-proxy-connect" title="g_proxy_connect ()"><code class="function">g_proxy_connect()</code></a>.</p>
263
263
<div class="refsect3">
264
264
<a name="id-1.4.13.13.9.4.5"></a><h4>Parameters</h4>
281
281
</tr>
282
282
<tr>
283
283
<td class="parameter_name"><p>error</p></td>
284
 
<td class="parameter_description"><p>return <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></p></td>
 
284
<td class="parameter_description"><p>return <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></p></td>
285
285
<td class="parameter_annotations"> </td>
286
286
</tr>
287
287
</tbody>
298
298
<div class="refsect2">
299
299
<a name="g-proxy-get-default-for-protocol"></a><h3>g_proxy_get_default_for_protocol ()</h3>
300
300
<pre class="programlisting"><a class="link" href="GProxy.html" title="GProxy"><span class="returnvalue">GProxy</span></a> *
301
 
g_proxy_get_default_for_protocol (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *protocol</code></em>);</pre>
 
301
g_proxy_get_default_for_protocol (<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> *protocol</code></em>);</pre>
302
302
<p>Lookup "gio-proxy" extension point for a proxy implementation that supports
303
303
specified protocol.</p>
304
304
<div class="refsect3">
327
327
<hr>
328
328
<div class="refsect2">
329
329
<a name="g-proxy-supports-hostname"></a><h3>g_proxy_supports_hostname ()</h3>
330
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
330
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
331
331
g_proxy_supports_hostname (<em class="parameter"><code><a class="link" href="GProxy.html" title="GProxy"><span class="type">GProxy</span></a> *proxy</code></em>);</pre>
332
332
<p>Some proxy protocols expect to be passed a hostname, which they
333
333
will resolve to an IP address themselves. Others, like SOCKS4, do
334
 
not allow this. This function will return <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>proxy</code></em>
 
334
not allow this. This function will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>proxy</code></em>
335
335
 is
336
 
implementing such a protocol. When <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned, the caller
 
336
implementing such a protocol. When <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned, the caller
337
337
should resolve the destination hostname first, and then pass a
338
338
<a class="link" href="GProxyAddress.html" title="GProxyAddress"><span class="type">GProxyAddress</span></a> containing the stringified IP address to
339
339
<a class="link" href="GProxy.html#g-proxy-connect" title="g_proxy_connect ()"><code class="function">g_proxy_connect()</code></a> or <a class="link" href="GProxy.html#g-proxy-connect-async" title="g_proxy_connect_async ()"><code class="function">g_proxy_connect_async()</code></a>.</p>
354
354
</div>
355
355
<div class="refsect3">
356
356
<a name="id-1.4.13.13.9.6.6"></a><h4>Returns</h4>
357
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if hostname resolution is supported.</p>
 
357
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if hostname resolution is supported.</p>
358
358
<p></p>
359
359
</div>
360
360
<p class="since">Since 2.26</p>
407
407
</colgroup>
408
408
<tbody>
409
409
<tr>
410
 
<td class="struct_member_name"><p><a href="../gobject/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="GProxyInterface.g-iface"></a>g_iface</code></em>;</p></td>
 
410
<td class="struct_member_name"><p><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="GProxyInterface.g-iface"></a>g_iface</code></em>;</p></td>
411
411
<td class="struct_member_description"><p>The parent interface.</p></td>
412
412
<td class="struct_member_annotations"> </td>
413
413
</tr>