Debian Codegraph @

doc/gssdp-1.6/ctor.Client.new.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</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"/>
27 <meta property="og:description" content="Reference for GSSDP.Client.new"/>
28 <meta name="twitter:title" content="GSSDP.Client.new"/>
29 <meta name="twitter:description" content="Reference for GSSDP.Client.new"/>
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 current" 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" 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</h1>
113 </header>
114
115 <section>
116 <div class="docblock">
117 <p><span class="emblem deprecated">deprecated: 1.6.0</span>&nbsp;</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#L52">[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</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">GError</span><span class="o">**</span><span class="w"> </span><span class="n">error</span>
133 <span class="p">)</span>
134 </pre></div>
135 </code></pre>
136 </div>
137 </div>
138
139 <div class="description toggle-wrapper">
140 <h4 id="description" style="display:flex;">
141 Description
142 <a href="#description" class="anchor"></a>
143
144 <a class="srclink" title="go to source location" href="https://gitlab.gnome.org/GNOME/gssdp/-/blob/libgssdp/gssdp-client.c#L823">[src]</a>
145
146 </h4>
147
148 <div class="docblock">
149 <p>Creates a <span class="caps">GSSDP</span> client&nbsp;on <code>iface</code>. GSSDPClient will pick the address it finds
150 suitable for&nbsp;using.</p>
151 <p>Using this utility function, the created client will be using <span class="caps">UDA</span> 1.0 and
152 IPv4&nbsp;only.</p>
153 </div>
154
155 <div class="docblock">
156
157
158 <div class="admonition deprecation">
159 <p class="admonition-title">Deprecated since: 1.6.0</p><p>Use <a href="ctor.Client.new_for_address.html"><code>gssdp_client_new_for_address()</code></a>&nbsp;instead.</p></div>
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 the network interface,&nbsp;or <code>NULL</code> for&nbsp;auto-detection.</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
197
198 <dt class="arg-name"><code>error</code></dt>
199 <dd class="arg-description">
200 <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>
201 <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>
202 <table>
203 <tr><td>The argument can be <code>NULL</code>.</td></tr>
204 <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>
205 <tr><td>The argument will be left initialized to <code>NULL</code> by the constructor if there are no errors.</td></tr>
206 <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>
207 </table>
208 </dd>
209
210 </dl>
211 </div>
212 </div>
213
214
215
216 <div class="return-value toggle-wrapper">
217 <h4 id="return-value">
218 Return value
219 <a href="#return-value" class="anchor"></a>
220 </h4>
221
222 <div class="docblock">
223 <div class="returns">
224 <div class="arg-description">
225 <p><em>Type:</em>&nbsp;<a href="class.Client.html"><code>GSSDPClient</code></a></p>
226 <p>A&nbsp;new <code>GSSDPClient</code> object.</p>
227 </div>
228 <div>
229 <table>
230
231
232
233 <tr><td title="transfer: full">The caller of the function takes ownership of the data, and is responsible for freeing it.</td></tr>
234 <tr><td>The return value can be <code>NULL</code>.</td></tr>
235
236 </table>
237 </div>
238 </div>
239 </div>
240 </div>
241
242 </section>
243 </section>
244
245
246
247
248 <section id="search" class="content hidden"></section>
249
250 <footer>
251
252 </footer>
253 </div>
254 </body>
255 </html>