Debian Codegraph @

doc/gssdp-1.6/ctor.Client.new_full.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.new_full</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 property="og:title" content="GSSDP.Client.new_full"/>
27 <meta property="og:description" content="Reference for GSSDP.Client.new_full"/>
28 <meta name="twitter:title" content="GSSDP.Client.new_full"/>
29 <meta name="twitter:description" content="Reference for GSSDP.Client.new_full"/>
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>Constructors</h5>
88 <div class="links">
89
90 <a class="method" href="ctor.Client.new.html">new</a>
91
92 <a class="method" href="ctor.Client.new_for_address.html">new_for_address</a>
93
94 <a class="method current" href="ctor.Client.new_full.html">new_full</a>
95
96 <a class="method" href="ctor.Client.new_with_port.html">new_with_port</a>
97
98 </div>
99 </div>
100
101 <div class="section generator">
102 <p>Generated by <a href="https://gitlab.gnome.org/GNOME/gi-docgen">gi-docgen</a> 2026.1</p>
103 </div>
104 </nav>
105
106 <button id="btn-to-top" class="hidden"><span class="up-arrow"></span></button>
107
108
109 <section id="main" class="content">
110 <header>
111 <h3>Constructor</h3>
112 <h1><a href="index.html">GSSDP</a><span class="sep"></span><a href="class.Client.html">Client</a><span class="sep"></span>new_full</h1>
113 </header>
114
115 <section>
116 <div class="docblock">
117 <p><span class="emblem available">since: 1.6.0</span></p>
118 </div>
119 <div class="declaration toggle-wrapper">
120 <h4 id="declaration" style="display:flex;">
121 Declaration
122 <a href="#declaration" class="anchor"></a>
123
124 <a class="srclink" title="go to source location" href="https://gitlab.gnome.org/GNOME/gssdp/-/blob/libgssdp/gssdp-client.h#L68">[src]</a>
125
126 </h4>
127
128 <div class="docblock">
129 <pre><code><div class="highlight"><pre><span></span><span class="n">GSSDPClient</span><span class="o">*</span>
130 <span class="n">gssdp_client_new_full</span><span class="w"> </span><span class="p">(</span>
131 <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">iface</span><span class="p">,</span>
132 <span class="w"> </span><span class="n">GInetAddress</span><span class="o">*</span><span class="w"> </span><span class="n">addr</span><span class="p">,</span>
133 <span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="n">port</span><span class="p">,</span>
134 <span class="w"> </span><span class="n">GSSDPUDAVersion</span><span class="w"> </span><span class="n">uda_version</span><span class="p">,</span>
135 <span class="w"> </span><span class="n">GError</span><span class="o">**</span><span class="w"> </span><span class="n">error</span>
136 <span class="p">)</span>
137 </pre></div>
138 </code></pre>
139 </div>
140 </div>
141
142 <div class="description toggle-wrapper">
143 <h4 id="description" style="display:flex;">
144 Description
145 <a href="#description" class="anchor"></a>
146
147 <a class="srclink" title="go to source location" href="https://gitlab.gnome.org/GNOME/gssdp/-/blob/libgssdp/gssdp-client.c#L881">[src]</a>
148
149 </h4>
150
151 <div class="docblock">
152 <p>Creates a <span class="caps">GSSDP</span> client with&nbsp;address <code>addr</code>. If none is specified, <span class="caps">GSSDP</span>
153 will chose the address it deems most&nbsp;suitable.</p>
154 </div>
155
156 <div class="docblock">
157
158 <p>Available since: 1.6.0</p>
159
160
161
162
163
164 </div>
165
166
167 </div>
168
169
170 <div class="parameters toggle-wrapper">
171 <h4 id="parameters">
172 Parameters
173 <a href="#parameters" class="anchor"></a>
174 </h4>
175
176 <div class="docblock">
177 <dl class="arguments">
178
179 <dt class="arg-name"><code>iface</code></dt>
180 <dd class="arg-description">
181 <p><em>Type:</em>&nbsp;<code>const char*</code></p>
182 <p>The name of a network&nbsp;interface.</p>
183 <table>
184
185 <tr><td>The argument can be <code>NULL</code>.</td></tr>
186
187
188
189
190
191 <tr><td title="transfer: none">The data is owned by the caller of the function.</td></tr>
192 <tr><td>The value is a NUL terminated UTF-8 string.</td></tr>
193 </table>
194 </dd>
195
196 <dt class="arg-name"><code>addr</code></dt>
197 <dd class="arg-description">
198 <p><em>Type:</em>&nbsp;<a href="javascript:void(0)" data-link="class.InetAddress.html" data-namespace="Gio" class="external"><code>GInetAddress</code></a></p>
199 <p>An <span class="caps">IP</span> address&nbsp;or <code>NULL</code> for auto-detection. If you do not
200 care about the address, but want to specify an address family, use
201 Glib.InetAddress.new_any with the appropriate family&nbsp;instead.</p>
202 <table>
203
204 <tr><td>The argument can be <code>NULL</code>.</td></tr>
205
206
207
208
209
210 <tr><td title="transfer: none">The data is owned by the caller of the function.</td></tr>
211
212 </table>
213 </dd>
214
215 <dt class="arg-name"><code>port</code></dt>
216 <dd class="arg-description">
217 <p><em>Type:</em>&nbsp;<code>guint16</code></p>
218 <p>The network port to use for M-<span class="caps">SEARCH</span> requests or 0 for&nbsp;random.</p>
219 <table>
220
221
222
223
224
225
226
227
228
229 </table>
230 </dd>
231
232 <dt class="arg-name"><code>uda_version</code></dt>
233 <dd class="arg-description">
234 <p><em>Type:</em>&nbsp;<a href="enum.UDAVersion.html"><code>GSSDPUDAVersion</code></a></p>
235 <p>The <span class="caps">UDA</span> version this client will adhere&nbsp;to.</p>
236 <table>
237
238
239
240
241
242
243
244
245
246 </table>
247 </dd>
248
249
250
251 <dt class="arg-name"><code>error</code></dt>
252 <dd class="arg-description">
253 <p><em>Type:</em>&nbsp;<a href="javascript:void(0)" data-namespace="GLib" data-link="struct.Error.html" class="external"><code>GError **</code></a></p>
254 <p>The return location for <a href="https://docs.gtk.org/glib/error-reporting.html#rules-for-use-of-gerror">a recoverable error</a>.</p>
255 <table>
256 <tr><td>The argument can be <code>NULL</code>.</td></tr>
257 <tr><td>If the return location is not <code>NULL</code>, then you must initialize it to a <code>NULL</code> <code>GError*</code>.</td></tr>
258 <tr><td>The argument will be left initialized to <code>NULL</code> by the constructor if there are no errors.</td></tr>
259 <tr><td>In case of error, the argument will be set to a newly allocated <code>GError</code>; the caller will take ownership of the data, and be responsible for freeing it.</td></tr>
260 </table>
261 </dd>
262
263 </dl>
264 </div>
265 </div>
266
267
268
269 <div class="return-value toggle-wrapper">
270 <h4 id="return-value">
271 Return value
272 <a href="#return-value" class="anchor"></a>
273 </h4>
274
275 <div class="docblock">
276 <div class="returns">
277 <div class="arg-description">
278 <p><em>Type:</em>&nbsp;<a href="class.Client.html"><code>GSSDPClient</code></a></p>
279 <p>A&nbsp;new <code>GSSDPClient</code> object&nbsp;or <code>NULL</code> on&nbsp;error.</p>
280 </div>
281 <div>
282 <table>
283
284
285
286 <tr><td title="transfer: full">The caller of the function takes ownership of the data, and is responsible for freeing it.</td></tr>
287 <tr><td>The return value can be <code>NULL</code>.</td></tr>
288
289 </table>
290 </div>
291 </div>
292 </div>
293 </div>
294
295 </section>
296 </section>
297
298
299
300
301 <section id="search" class="content hidden"></section>
302
303 <footer>
304
305 </footer>
306 </div>
307 </body>
308 </html>