5
5
<title>SoupServer</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
7
7
<link rel="home" href="index.html" title="libsoup Reference Manual">
8
<link rel="up" href="ch02.html" title="API Reference">
9
<link rel="prev" href="libsoup-24-soup-method.html" title="soup-method">
8
<link rel="up" href="ch02.html" title="Core API">
9
<link rel="prev" href="SoupProxyResolver.html" title="SoupProxyResolver">
10
10
<link rel="next" href="SoupSession.html" title="SoupSession">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="chapter" href="ch01.html" title="Tutorial">
14
<link rel="chapter" href="ch02.html" title="API Reference">
14
<link rel="chapter" href="ch02.html" title="Core API">
15
<link rel="chapter" href="ch03.html" title="Web Services APIs">
16
<link rel="chapter" href="ch04.html" title="GNOME integration">
17
<link rel="chapter" href="ch05.html" title="Low-level Networking API">
15
18
<link rel="index" href="ix01.html" title="Index">
17
20
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
18
21
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
19
22
<tr valign="middle">
20
<td><a accesskey="p" href="libsoup-24-soup-method.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
23
<td><a accesskey="p" href="SoupProxyResolver.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
21
24
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
22
25
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
23
26
<th width="100%" align="center">libsoup Reference Manual</th>
24
27
<td><a accesskey="n" href="SoupSession.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
26
<tr><td colspan="5" class="shortcuts"><nobr><a href="#SoupServer.synopsis" class="shortcut">Top</a>
28
<a href="#SoupServer.description" class="shortcut">Description</a>
30
<a href="#SoupServer.object-hierarchy" class="shortcut">Object Hierarchy</a>
32
<a href="#SoupServer.properties" class="shortcut">Properties</a>
34
<a href="#SoupServer.signals" class="shortcut">Signals</a></nobr></td></tr>
29
<tr><td colspan="5" class="shortcuts">
30
<a href="#SoupServer.synopsis" class="shortcut">Top</a>
32
<a href="#SoupServer.description" class="shortcut">Description</a>
34
<a href="#SoupServer.object-hierarchy" class="shortcut">Object Hierarchy</a>
36
<a href="#SoupServer.properties" class="shortcut">Properties</a>
38
<a href="#SoupServer.signals" class="shortcut">Signals</a>
36
41
<div class="refentry" lang="en">
37
42
<a name="SoupServer"></a><div class="titlepage"></div>
46
51
<a name="SoupServer.synopsis"></a><h2>Synopsis</h2>
47
52
<pre class="synopsis">
48
53
struct <a class="link" href="SoupServer.html#SoupServer-struct" title="struct SoupServer">SoupServer</a>;
49
<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a>* <a class="link" href="SoupServer.html#soup-server-new" title="soup_server_new ()">soup_server_new</a> (const char *optname1,
54
<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> * <a class="link" href="SoupServer.html#soup-server-new" title="soup_server_new ()">soup_server_new</a> (const char *optname1,
52
57
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
55
60
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
56
61
>guint</a> <a class="link" href="SoupServer.html#soup-server-get-port" title="soup_server_get_port ()">soup_server_get_port</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);
57
<a class="link" href="SoupSocket.html" title="SoupSocket">SoupSocket</a>* <a class="link" href="SoupServer.html#soup-server-get-listener" title="soup_server_get_listener ()">soup_server_get_listener</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);
62
<a class="link" href="SoupSocket.html" title="SoupSocket">SoupSocket</a> * <a class="link" href="SoupServer.html#soup-server-get-listener" title="soup_server_get_listener ()">soup_server_get_listener</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);
58
63
void <a class="link" href="SoupServer.html#soup-server-run" title="soup_server_run ()">soup_server_run</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);
59
64
void <a class="link" href="SoupServer.html#soup-server-run-async" title="soup_server_run_async ()">soup_server_run_async</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);
60
65
void <a class="link" href="SoupServer.html#soup-server-quit" title="soup_server_quit ()">soup_server_quit</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);
62
67
href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#GMainContext"
63
>GMainContext</a>* <a class="link" href="SoupServer.html#soup-server-get-async-context" title="soup_server_get_async_context ()">soup_server_get_async_context</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);
68
>GMainContext</a> * <a class="link" href="SoupServer.html#soup-server-get-async-context" title="soup_server_get_async_context ()">soup_server_get_async_context</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);
65
70
void (<a class="link" href="SoupServer.html#SoupServerCallback" title="SoupServerCallback ()">*SoupServerCallback</a>) (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server,
66
71
<a class="link" href="SoupMessage.html" title="SoupMessage">SoupMessage</a> *msg,
87
92
typedef <a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a>;
88
<a class="link" href="SoupSocket.html" title="SoupSocket">SoupSocket</a>* <a class="link" href="SoupServer.html#soup-client-context-get-socket" title="soup_client_context_get_socket ()">soup_client_context_get_socket</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
89
<a class="link" href="SoupAddress.html" title="SoupAddress">SoupAddress</a>* <a class="link" href="SoupServer.html#soup-client-context-get-address" title="soup_client_context_get_address ()">soup_client_context_get_address</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
90
const char* <a class="link" href="SoupServer.html#soup-client-context-get-host" title="soup_client_context_get_host ()">soup_client_context_get_host</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
91
<a class="link" href="SoupAuthDomain.html" title="SoupAuthDomain">SoupAuthDomain</a>* <a class="link" href="SoupServer.html#soup-client-context-get-auth-domain" title="soup_client_context_get_auth_domain ()">soup_client_context_get_auth_domain</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
92
const char* <a class="link" href="SoupServer.html#soup-client-context-get-auth-user" title="soup_client_context_get_auth_user ()">soup_client_context_get_auth_user</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
93
<a class="link" href="SoupSocket.html" title="SoupSocket">SoupSocket</a> * <a class="link" href="SoupServer.html#soup-client-context-get-socket" title="soup_client_context_get_socket ()">soup_client_context_get_socket</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
94
<a class="link" href="SoupAddress.html" title="SoupAddress">SoupAddress</a> * <a class="link" href="SoupServer.html#soup-client-context-get-address" title="soup_client_context_get_address ()">soup_client_context_get_address</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
95
const char * <a class="link" href="SoupServer.html#soup-client-context-get-host" title="soup_client_context_get_host ()">soup_client_context_get_host</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
96
<a class="link" href="SoupAuthDomain.html" title="SoupAuthDomain">SoupAuthDomain</a> * <a class="link" href="SoupServer.html#soup-client-context-get-auth-domain" title="soup_client_context_get_auth_domain ()">soup_client_context_get_auth_domain</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
97
const char * <a class="link" href="SoupServer.html#soup-client-context-get-auth-user" title="soup_client_context_get_auth_user ()">soup_client_context_get_auth_user</a> (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);
94
99
void <a class="link" href="SoupServer.html#soup-server-add-auth-domain" title="soup_server_add_auth_domain ()">soup_server_add_auth_domain</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server,
95
100
<a class="link" href="SoupAuthDomain.html" title="SoupAuthDomain">SoupAuthDomain</a> *auth_domain);
101
106
void <a class="link" href="SoupServer.html#soup-server-unpause-message" title="soup_server_unpause_message ()">soup_server_unpause_message</a> (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server,
102
107
<a class="link" href="SoupMessage.html" title="SoupMessage">SoupMessage</a> *msg);
104
#define <a class="link" href="SoupServer.html#SOUP-SERVER-PORT:CAPS" title="SOUP_SERVER_PORT">SOUP_SERVER_PORT</a>
105
#define <a class="link" href="SoupServer.html#SOUP-SERVER-INTERFACE:CAPS" title="SOUP_SERVER_INTERFACE">SOUP_SERVER_INTERFACE</a>
106
#define <a class="link" href="SoupServer.html#SOUP-SERVER-SSL-CERT-FILE:CAPS" title="SOUP_SERVER_SSL_CERT_FILE">SOUP_SERVER_SSL_CERT_FILE</a>
107
#define <a class="link" href="SoupServer.html#SOUP-SERVER-SSL-KEY-FILE:CAPS" title="SOUP_SERVER_SSL_KEY_FILE">SOUP_SERVER_SSL_KEY_FILE</a>
108
#define <a class="link" href="SoupServer.html#SOUP-SERVER-ASYNC-CONTEXT:CAPS" title="SOUP_SERVER_ASYNC_CONTEXT">SOUP_SERVER_ASYNC_CONTEXT</a>
109
#define <a class="link" href="SoupServer.html#SOUP-SERVER-RAW-PATHS:CAPS" title="SOUP_SERVER_RAW_PATHS">SOUP_SERVER_RAW_PATHS</a>
110
#define <a class="link" href="SoupServer.html#SOUP-SERVER-SERVER-HEADER:CAPS" title="SOUP_SERVER_SERVER_HEADER">SOUP_SERVER_SERVER_HEADER</a>
109
#define <a class="link" href="SoupServer.html#SOUP-SERVER-PORT--CAPS" title="SOUP_SERVER_PORT">SOUP_SERVER_PORT</a>
110
#define <a class="link" href="SoupServer.html#SOUP-SERVER-INTERFACE--CAPS" title="SOUP_SERVER_INTERFACE">SOUP_SERVER_INTERFACE</a>
111
#define <a class="link" href="SoupServer.html#SOUP-SERVER-SSL-CERT-FILE--CAPS" title="SOUP_SERVER_SSL_CERT_FILE">SOUP_SERVER_SSL_CERT_FILE</a>
112
#define <a class="link" href="SoupServer.html#SOUP-SERVER-SSL-KEY-FILE--CAPS" title="SOUP_SERVER_SSL_KEY_FILE">SOUP_SERVER_SSL_KEY_FILE</a>
113
#define <a class="link" href="SoupServer.html#SOUP-SERVER-ASYNC-CONTEXT--CAPS" title="SOUP_SERVER_ASYNC_CONTEXT">SOUP_SERVER_ASYNC_CONTEXT</a>
114
#define <a class="link" href="SoupServer.html#SOUP-SERVER-RAW-PATHS--CAPS" title="SOUP_SERVER_RAW_PATHS">SOUP_SERVER_RAW_PATHS</a>
115
#define <a class="link" href="SoupServer.html#SOUP-SERVER-SERVER-HEADER--CAPS" title="SOUP_SERVER_SERVER_HEADER">SOUP_SERVER_SERVER_HEADER</a>
113
118
<div class="refsect1" lang="en">
163
168
called to process any requests underneath the path passed to
164
169
<a class="link" href="SoupServer.html#soup-server-add-handler" title="soup_server_add_handler ()"><code class="function">soup_server_add_handler()</code></a>. (If you want all requests to go to the
165
170
same handler, just pass "/" (or <a
166
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
171
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
167
172
><code class="literal">NULL</code></a>) for the path.) Any request
168
173
that does not match any handler will automatically be returned to
169
174
the client with a 404 (Not Found) status.
189
194
href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#GMainContext"
190
195
><span class="type">GMainContext</span></a> for it to use, and set that via the
191
<a class="link" href="SoupServer.html#SOUP-SERVER-ASYNC-CONTEXT:CAPS" title="SOUP_SERVER_ASYNC_CONTEXT"><span class="type">SOUP_SERVER_ASYNC_CONTEXT</span></a> property.</p>
196
<a class="link" href="SoupServer.html#SOUP-SERVER-ASYNC-CONTEXT--CAPS" title="SOUP_SERVER_ASYNC_CONTEXT"><span class="type">SOUP_SERVER_ASYNC_CONTEXT</span></a> property.</p>
196
200
<div class="refsect1" lang="en">
199
203
<a name="SoupServer-struct"></a><h3>struct SoupServer</h3>
200
204
<pre class="programlisting">struct SoupServer;</pre>
206
209
<div class="refsect2" lang="en">
207
210
<a name="soup-server-new"></a><h3>soup_server_new ()</h3>
208
<pre class="programlisting"><a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a>* soup_server_new (const char *optname1,
211
<pre class="programlisting"><a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> * soup_server_new (const char *optname1,
211
214
Creates a new <a class="link" href="SoupServer.html" title="SoupServer"><span class="type">SoupServer</span></a>.</p>
215
217
<div class="variablelist"><table border="0">
216
218
<col align="left" valign="top">
246
248
In order for a server to run https, you must set the
247
<a class="link" href="SoupServer.html#SOUP-SERVER-SSL-CERT-FILE:CAPS" title="SOUP_SERVER_SSL_CERT_FILE"><code class="literal">SOUP_SERVER_SSL_CERT_FILE</code></a> and <a class="link" href="SoupServer.html#SOUP-SERVER-SSL-KEY-FILE:CAPS" title="SOUP_SERVER_SSL_KEY_FILE"><code class="literal">SOUP_SERVER_SSL_KEY_FILE</code></a> properties
249
<a class="link" href="SoupServer.html#SOUP-SERVER-SSL-CERT-FILE--CAPS" title="SOUP_SERVER_SSL_CERT_FILE"><code class="literal">SOUP_SERVER_SSL_CERT_FILE</code></a> and <a class="link" href="SoupServer.html#SOUP-SERVER-SSL-KEY-FILE--CAPS" title="SOUP_SERVER_SSL_KEY_FILE"><code class="literal">SOUP_SERVER_SSL_KEY_FILE</code></a> properties
248
250
to provide it with an SSL certificate to use.</p>
252
253
<div class="variablelist"><table border="0">
253
254
<col align="left" valign="top">
277
278
Gets the TCP port that <em class="parameter"><code>server</code></em> is listening on. This is most useful
278
279
when you did not request a specific port (or explicitly requested
279
<a class="link" href="SoupAddress.html#SOUP-ADDRESS-ANY-PORT:CAPS" title="SOUP_ADDRESS_ANY_PORT"><code class="literal">SOUP_ADDRESS_ANY_PORT</code></a>).</p>
280
<a class="link" href="SoupAddress.html#SOUP-ADDRESS-ANY-PORT--CAPS" title="SOUP_ADDRESS_ANY_PORT"><code class="literal">SOUP_ADDRESS_ANY_PORT</code></a>).</p>
283
283
<div class="variablelist"><table border="0">
284
284
<col align="left" valign="top">
300
300
<div class="refsect2" lang="en">
301
301
<a name="soup-server-get-listener"></a><h3>soup_server_get_listener ()</h3>
302
<pre class="programlisting"><a class="link" href="SoupSocket.html" title="SoupSocket">SoupSocket</a>* soup_server_get_listener (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);</pre>
302
<pre class="programlisting"><a class="link" href="SoupSocket.html" title="SoupSocket">SoupSocket</a> * soup_server_get_listener (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);</pre>
304
304
Gets <em class="parameter"><code>server</code></em>'s listening socket. You should treat this as
305
305
read-only; writing to it or modifiying it may cause <em class="parameter"><code>server</code></em> to
310
309
<div class="variablelist"><table border="0">
311
310
<col align="left" valign="top">
360
358
><span class="type">GMainContext</span></a>. It will not
361
359
actually perform any processing unless the appropriate main loop is
362
360
running. In the simple case where you did not set the server's
363
<a class="link" href="SoupServer.html#SOUP-SERVER-ASYNC-CONTEXT:CAPS" title="SOUP_SERVER_ASYNC_CONTEXT"><code class="literal">SOUP_SERVER_ASYNC_CONTEXT</code></a> property, this means the server will run
361
<a class="link" href="SoupServer.html#SOUP-SERVER-ASYNC-CONTEXT--CAPS" title="SOUP_SERVER_ASYNC_CONTEXT"><code class="literal">SOUP_SERVER_ASYNC_CONTEXT</code></a> property, this means the server will run
364
362
whenever the glib main loop is running.</p>
368
365
<div class="variablelist"><table border="0">
369
366
<col align="left" valign="top">
402
398
<a name="soup-server-get-async-context"></a><h3>soup_server_get_async_context ()</h3>
403
399
<pre class="programlisting"><a
404
400
href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#GMainContext"
405
>GMainContext</a>* soup_server_get_async_context (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);</pre>
401
>GMainContext</a> * soup_server_get_async_context (<a class="link" href="SoupServer.html" title="SoupServer">SoupServer</a> *server);</pre>
407
403
Gets <em class="parameter"><code>server</code></em>'s async_context. This does not add a ref to the
408
404
context, so you will need to ref it yourself if you want it to
409
405
outlive its server.</p>
413
408
<div class="variablelist"><table border="0">
414
409
<col align="left" valign="top">
423
418
<td> <em class="parameter"><code>server</code></em>'s <a
424
419
href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#GMainContext"
425
420
><span class="type">GMainContext</span></a>, which may be <a
426
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
421
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
427
422
><code class="literal">NULL</code></a>
455
450
"/foo%2Fbar" is treated the same as "/foo/bar". If your
456
451
server is serving resources in some non-POSIX-filesystem namespace,
457
452
you may want to distinguish those as two distinct paths. In that
458
case, you can set the <a class="link" href="SoupServer.html#SOUP-SERVER-RAW-PATHS:CAPS" title="SOUP_SERVER_RAW_PATHS"><code class="literal">SOUP_SERVER_RAW_PATHS</code></a> property when creating
453
case, you can set the <a class="link" href="SoupServer.html#SOUP-SERVER-RAW-PATHS--CAPS" title="SOUP_SERVER_RAW_PATHS"><code class="literal">SOUP_SERVER_RAW_PATHS</code></a> property when creating
459
454
the <a class="link" href="SoupServer.html" title="SoupServer"><span class="type">SoupServer</span></a>, and it will leave those characters undecoded. (You
460
455
may want to call <a class="link" href="libsoup-24-SoupURI.html#soup-uri-normalize" title="soup_uri_normalize ()"><code class="function">soup_uri_normalize()</code></a> to decode any percent-encoded
461
456
characters that you aren't handling specially.)
488
483
To send the response body a bit at a time using "chunked" encoding,
489
484
first call <a class="link" href="libsoup-24-SoupMessageHeaders.html#soup-message-headers-set-encoding" title="soup_message_headers_set_encoding ()"><code class="function">soup_message_headers_set_encoding()</code></a> to set
490
<a class="link" href="libsoup-24-SoupMessageHeaders.html#SOUP-ENCODING-CHUNKED:CAPS"><code class="literal">SOUP_ENCODING_CHUNKED</code></a> on the <code class="literal">response_headers</code>. Then call
485
<a class="link" href="libsoup-24-SoupMessageHeaders.html#SOUP-ENCODING-CHUNKED--CAPS"><code class="literal">SOUP_ENCODING_CHUNKED</code></a> on the <code class="literal">response_headers</code>. Then call
491
486
<a class="link" href="libsoup-24-SoupMessageBody.html#soup-message-body-append" title="soup_message_body_append ()"><code class="function">soup_message_body_append()</code></a> (or <a class="link" href="libsoup-24-SoupMessageBody.html#soup-message-body-append-buffer" title="soup_message_body_append_buffer ()"><code class="function">soup_message_body_append_buffer()</code></a>)
492
487
to append each chunk as it becomes ready, and
493
488
<a class="link" href="SoupServer.html#soup-server-unpause-message" title="soup_server_unpause_message ()"><code class="function">soup_server_unpause_message()</code></a> to make sure it's running. (The
629
621
also be of use in some situations (eg, tracking when multiple
630
622
requests are made on the same connection).</p>
636
627
<div class="refsect2" lang="en">
637
628
<a name="soup-client-context-get-socket"></a><h3>soup_client_context_get_socket ()</h3>
638
<pre class="programlisting"><a class="link" href="SoupSocket.html" title="SoupSocket">SoupSocket</a>* soup_client_context_get_socket (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
629
<pre class="programlisting"><a class="link" href="SoupSocket.html" title="SoupSocket">SoupSocket</a> * soup_client_context_get_socket (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
640
631
Retrieves the <a class="link" href="SoupSocket.html" title="SoupSocket"><span class="type">SoupSocket</span></a> that <em class="parameter"><code>client</code></em> is associated with.
670
660
<div class="refsect2" lang="en">
671
661
<a name="soup-client-context-get-address"></a><h3>soup_client_context_get_address ()</h3>
672
<pre class="programlisting"><a class="link" href="SoupAddress.html" title="SoupAddress">SoupAddress</a>* soup_client_context_get_address (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
662
<pre class="programlisting"><a class="link" href="SoupAddress.html" title="SoupAddress">SoupAddress</a> * soup_client_context_get_address (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
674
664
Retrieves the <a class="link" href="SoupAddress.html" title="SoupAddress"><span class="type">SoupAddress</span></a> associated with the remote end
675
665
of a connection.</p>
679
668
<div class="variablelist"><table border="0">
680
669
<col align="left" valign="top">
697
686
<div class="refsect2" lang="en">
698
687
<a name="soup-client-context-get-host"></a><h3>soup_client_context_get_host ()</h3>
699
<pre class="programlisting">const char* soup_client_context_get_host (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
688
<pre class="programlisting">const char * soup_client_context_get_host (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
701
690
Retrieves the IP address associated with the remote end of a
702
691
connection. (If you want the actual hostname, you'll have to call
703
692
<a class="link" href="SoupServer.html#soup-client-context-get-address" title="soup_client_context_get_address ()"><code class="function">soup_client_context_get_address()</code></a> and then call the appropriate
704
693
<a class="link" href="SoupAddress.html" title="SoupAddress"><span class="type">SoupAddress</span></a> method to resolve it.)</p>
708
696
<div class="variablelist"><table border="0">
709
697
<col align="left" valign="top">
726
714
<div class="refsect2" lang="en">
727
715
<a name="soup-client-context-get-auth-domain"></a><h3>soup_client_context_get_auth_domain ()</h3>
728
<pre class="programlisting"><a class="link" href="SoupAuthDomain.html" title="SoupAuthDomain">SoupAuthDomain</a>* soup_client_context_get_auth_domain (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
716
<pre class="programlisting"><a class="link" href="SoupAuthDomain.html" title="SoupAuthDomain">SoupAuthDomain</a> * soup_client_context_get_auth_domain (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
730
718
Checks whether the request associated with <em class="parameter"><code>client</code></em> has been
731
719
authenticated, and if so returns the <a class="link" href="SoupAuthDomain.html" title="SoupAuthDomain"><span class="type">SoupAuthDomain</span></a> that
732
720
authenticated it.</p>
736
723
<div class="variablelist"><table border="0">
737
724
<col align="left" valign="top">
745
732
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
746
733
<td> a <a class="link" href="SoupAuthDomain.html" title="SoupAuthDomain"><span class="type">SoupAuthDomain</span></a>, or <a
747
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
734
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
748
735
><code class="literal">NULL</code></a> if the request was not
756
743
<div class="refsect2" lang="en">
757
744
<a name="soup-client-context-get-auth-user"></a><h3>soup_client_context_get_auth_user ()</h3>
758
<pre class="programlisting">const char* soup_client_context_get_auth_user (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
745
<pre class="programlisting">const char * soup_client_context_get_auth_user (<a class="link" href="SoupServer.html#SoupClientContext" title="SoupClientContext">SoupClientContext</a> *client);</pre>
760
747
Checks whether the request associated with <em class="parameter"><code>client</code></em> has been
761
748
authenticated, and if so returns the username that the client
762
749
authenticated as.</p>
766
752
<div class="variablelist"><table border="0">
767
753
<col align="left" valign="top">
775
761
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
776
762
<td> the authenticated-as user, or <a
777
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
763
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
778
764
><code class="literal">NULL</code></a> if the request
779
765
was not authenticated.
907
889
<div class="refsect2" lang="en">
908
<a name="SOUP-SERVER-PORT:CAPS"></a><h3>SOUP_SERVER_PORT</h3>
890
<a name="SOUP-SERVER-PORT--CAPS"></a><h3>SOUP_SERVER_PORT</h3>
909
891
<pre class="programlisting">#define SOUP_SERVER_PORT "port"
916
897
<div class="refsect2" lang="en">
917
<a name="SOUP-SERVER-INTERFACE:CAPS"></a><h3>SOUP_SERVER_INTERFACE</h3>
898
<a name="SOUP-SERVER-INTERFACE--CAPS"></a><h3>SOUP_SERVER_INTERFACE</h3>
918
899
<pre class="programlisting">#define SOUP_SERVER_INTERFACE "interface"
925
905
<div class="refsect2" lang="en">
926
<a name="SOUP-SERVER-SSL-CERT-FILE:CAPS"></a><h3>SOUP_SERVER_SSL_CERT_FILE</h3>
906
<a name="SOUP-SERVER-SSL-CERT-FILE--CAPS"></a><h3>SOUP_SERVER_SSL_CERT_FILE</h3>
927
907
<pre class="programlisting">#define SOUP_SERVER_SSL_CERT_FILE "ssl-cert-file"
934
913
<div class="refsect2" lang="en">
935
<a name="SOUP-SERVER-SSL-KEY-FILE:CAPS"></a><h3>SOUP_SERVER_SSL_KEY_FILE</h3>
914
<a name="SOUP-SERVER-SSL-KEY-FILE--CAPS"></a><h3>SOUP_SERVER_SSL_KEY_FILE</h3>
936
915
<pre class="programlisting">#define SOUP_SERVER_SSL_KEY_FILE "ssl-key-file"
943
921
<div class="refsect2" lang="en">
944
<a name="SOUP-SERVER-ASYNC-CONTEXT:CAPS"></a><h3>SOUP_SERVER_ASYNC_CONTEXT</h3>
922
<a name="SOUP-SERVER-ASYNC-CONTEXT--CAPS"></a><h3>SOUP_SERVER_ASYNC_CONTEXT</h3>
945
923
<pre class="programlisting">#define SOUP_SERVER_ASYNC_CONTEXT "async-context"
952
929
<div class="refsect2" lang="en">
953
<a name="SOUP-SERVER-RAW-PATHS:CAPS"></a><h3>SOUP_SERVER_RAW_PATHS</h3>
930
<a name="SOUP-SERVER-RAW-PATHS--CAPS"></a><h3>SOUP_SERVER_RAW_PATHS</h3>
954
931
<pre class="programlisting">#define SOUP_SERVER_RAW_PATHS "raw-paths"
961
937
<div class="refsect2" lang="en">
962
<a name="SOUP-SERVER-SERVER-HEADER:CAPS"></a><h3>SOUP_SERVER_SERVER_HEADER</h3>
938
<a name="SOUP-SERVER-SERVER-HEADER--CAPS"></a><h3>SOUP_SERVER_SERVER_HEADER</h3>
963
939
<pre class="programlisting">#define SOUP_SERVER_SERVER_HEADER "server-header"
1009
984
>gchar</a>* : Read / Write / Construct</pre>
1012
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
987
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
1013
988
><code class="literal">NULL</code></a>, the value to use for the "Server" header on
1014
989
<a class="link" href="SoupMessage.html" title="SoupMessage"><span class="type">SoupMessage</span></a>s processed by this server.