Debian Codegraph @

doc/gssdp-1.6/method.Client.set_server_id.html

raw symbols SCIP
1 <!--
2 SPDX-FileCopyrightText: The GUPnP developers
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5 -->
6
7 <!DOCTYPE html>
8 <html lang="en">
9 <head>
10 <title>GSSDP.Client.set_server_id</title>
11 <meta name="viewport" content="width=device-width, initial-scale=1">
12
13 <meta charset="utf-8" />
14
15
16 <meta property="og:type" content="website"/>
17
18
19 <meta property="og:image:width" content="256"/>
20 <meta property="og:image:height" content="256"/>
21 <meta property="og:image:secure_url" content="gupnp-logo-short.svg"/>
22 <meta property="og:image:alt" content="GSSDP-1.6"/>
23
24
25
26 <meta priority="og:title" content="GSSDP.Client.set_server_id"/>
27 <meta priority="og:description" content="Reference for GSSDP.Client.set_server_id"/>
28 <meta name="twitter:title" content="GSSDP.Client.set_server_id"/>
29 <meta name="twitter:description" content="Reference for GSSDP.Client.set_server_id"/>
30
31
32
33 <meta name="twitter:card" content="summary"/>
34
35
36
37
38
39
40 <link rel="stylesheet" href="style.css" type="text/css" />
41
42
43
44
45 <script src="urlmap.js"></script>
46
47
48 <script src="fzy.js"></script>
49 <script src="search.js"></script>
50
51 <script src="main.js"></script>
52
53
54 </head>
55
56 <body>
57 <div id="body-wrapper" tabindex="-1">
58
59 <nav class="sidebar devhelp-hidden">
60
61 <div class="section">
62 <a href="index.html"><img src="gupnp-logo-short.svg" class="logo"/></a>
63 </div>
64
65
66 <div class="search section">
67 <form id="search-form" autocomplete="off">
68 <input id="search-input" type="text" name="do-not-autocomplete" placeholder="Click, or press 's' to search" autocomplete="off"/>
69 </form>
70 </div>
71
72 <div class="section namespace">
73 <h3><a href="index.html">GSSDP</a></h3>
74 <p>API Version: 1.6</p>
75
76 <p>Library Version: 1.6.6</p>
77
78 </div>
79
80 <div class="section">
81 <h5>Type</h5>
82 <div class="links">
83 <a href="class.Client.html">Client</a>
84 </div>
85 </div>
86 <div class="section">
87 <h5>Methods</h5>
88 <div class="links">
89
90 <a class="method" href="method.Client.add_cache_entry.html">add_cache_entry</a>
91
92 <a class="method" href="method.Client.append_header.html">append_header</a>
93
94 <a class="method" href="method.Client.can_reach.html">can_reach</a>
95
96 <a class="method" href="method.Client.clear_headers.html">clear_headers</a>
97
98 <a class="method" href="method.Client.get_active.html">get_active</a>
99
100 <a class="method" href="method.Client.get_address.html">get_address</a>
101
102 <a class="method" href="method.Client.get_address_mask.html">get_address_mask</a>
103
104 <a class="method" href="method.Client.get_family.html">get_family</a>
105
106 <a class="method" href="method.Client.get_host_ip.html">get_host_ip</a>
107
108 <a class="method" href="method.Client.get_index.html">get_index</a>
109
110 <a class="method" href="method.Client.get_interface.html">get_interface</a>
111
112 <a class="method" href="method.Client.get_network.html">get_network</a>
113
114 <a class="method" href="method.Client.get_port.html">get_port</a>
115
116 <a class="method" href="method.Client.get_server_id.html">get_server_id</a>
117
118 <a class="method" href="method.Client.get_tcp_socket.html">get_tcp_socket</a>
119
120 <a class="method" href="method.Client.get_uda_version.html">get_uda_version</a>
121
122 <a class="method" href="method.Client.guess_user_agent.html">guess_user_agent</a>
123
124 <a class="method" href="method.Client.remove_header.html">remove_header</a>
125
126 <a class="method" href="method.Client.set_boot_id.html">set_boot_id</a>
127
128 <a class="method" href="method.Client.set_config_id.html">set_config_id</a>
129
130 <a class="method" href="method.Client.set_network.html">set_network</a>
131
132 <a class="method current" href="method.Client.set_server_id.html">set_server_id</a>
133
134 </div>
135 </div>
136
137 <div class="section generator">
138 <p>Generated by <a href="https://gitlab.gnome.org/GNOME/gi-docgen">gi-docgen</a> 2026.1</p>
139 </div>
140 </nav>
141
142 <button id="btn-to-top" class="hidden"><span class="up-arrow"></span></button>
143
144
145 <section id="main" class="content">
146 <header>
147 <h3>Method</h3>
148 <h1><a href="index.html">GSSDP</a><span class="sep"></span><a href="class.Client.html">Client</a><span class="sep"></span>set_server_id</h1>
149 </header>
150
151 <section>
152 <div class="docblock">
153 <p></p>
154 </div>
155
156 <div class="declaration toggle-wrapper">
157 <h4 style="display:flex;" id="declaration">
158 Declaration
159 <a class="anchor" href="#declaration"></a>
160
161 <a class="srclink" title="go to source location" href="https://gitlab.gnome.org/GNOME/gssdp/-/blob/libgssdp/gssdp-client.h#L75">[src]</a>
162
163 </h4>
164
165 <div class="docblock c-decl">
166 <pre><code><div class="highlight"><pre><span></span><span class="kt">void</span>
167 <span class="n">gssdp_client_set_server_id</span><span class="w"> </span><span class="p">(</span>
168 <span class="w"> </span><span class="n">GSSDPClient</span><span class="o">*</span><span class="w"> </span><span class="n">client</span><span class="p">,</span>
169 <span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">server_id</span>
170 <span class="p">)</span>
171 </pre></div>
172 </code></pre>
173 </div>
174 </div>
175
176 <div class="description toggle-wrapper">
177 <h4 style="display:flex;" id="description">
178 Description
179 <a class="anchor" href="#description"></a>
180
181 <a class="srclink" title="go to source location" href="https://gitlab.gnome.org/GNOME/gssdp/-/blob/libgssdp/gssdp-client.c#L946">[src]</a>
182
183 </h4>
184
185 <div class="docblock">
186 <p>Sets the server <span class="caps">ID</span>&nbsp;of <code>client</code> to <code>server_id</code>. This string is used as the
187 &#8220;Server:&#8221; identification header for <span class="caps">SSDP</span> discovery and response packets
188 and &#8220;User-Agent&#8221; header for&nbsp;searches.</p>
189 <p>By default, <span class="caps">GSSDP</span> will generate a header conforming to the requirements
190 defined in the <span class="caps">UDA</span> documents: <span class="caps">OS</span>/Version UPnP/Version <span class="caps">GSSDP</span>/Version.</p>
191 </div>
192
193 <div class="docblock">
194
195
196
197
198
199
200
201 </div>
202
203
204 <div class="docblock">
205 <table>
206
207 <tr><td>Sets property</td><td><a href="property.Client.server-id.html"><code>GSSDP.Client:server-id</code></a></td></tr>
208
209 </table>
210 </div>
211
212 </div>
213
214
215 <div class="parameters toggle-wrapper">
216 <h4 id="parameters">
217 Parameters
218 <a href="#parameters" class="anchor"></a>
219 </h4>
220
221 <div class="docblock">
222 <dl class="arguments">
223
224
225
226 <dt class="arg-name"><code>server_id</code></dt>
227 <dd class="arg-description">
228 <p><em>Type:</em>&nbsp;<code>const char*</code></p>
229 <p>The server <span class="caps">ID</span>.</p>
230 <table>
231
232
233
234
235
236
237
238 <tr><td title="transfer: none">The data is owned by the caller of the method.</td></tr>
239 <tr><td>The value is a NUL terminated UTF-8 string.</td></tr>
240 </table>
241 </dd>
242
243
244
245 </dl>
246 </div>
247 </div>
248
249
250
251
252 </section>
253 </section>
254
255
256
257
258 <section id="search" class="content hidden"></section>
259
260 <footer>
261
262 </footer>
263 </div>
264 </body>
265 </html>