Debian Codegraph @

doc/gssdp-1.6/ctor.Client.new_with_port.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_with_port</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_with_port"/>
27 <meta property="og:description" content="Reference for GSSDP.Client.new_with_port"/>
28 <meta name="twitter:title" content="GSSDP.Client.new_with_port"/>
29 <meta name="twitter:description" content="Reference for GSSDP.Client.new_with_port"/>
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" href="ctor.Client.new_full.html">new_full</a>
95
96 <a class="method current" 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_with_port</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#L57">[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_with_port</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">guint16</span><span class="w"> </span><span class="n">msearch_port</span><span class="p">,</span>
133 <span class="w"> </span><span class="n">GError</span><span class="o">**</span><span class="w"> </span><span class="n">error</span>
134 <span class="p">)</span>
135 </pre></div>
136 </code></pre>
137 </div>
138 </div>
139
140 <div class="description toggle-wrapper">
141 <h4 id="description" style="display:flex;">
142 Description
143 <a href="#description" class="anchor"></a>
144
145 <a class="srclink" title="go to source location" href="https://gitlab.gnome.org/GNOME/gssdp/-/blob/libgssdp/gssdp-client.c#L849">[src]</a>
146
147 </h4>
148
149 <div class="docblock">
150 <p>Creates a <span class="caps">GSSDP</span> client&nbsp;on <code>iface</code>. GSSDPClient will pick the address it finds
151 suitable for&nbsp;using.</p>
152 <p>Using this utility function, the created client will be using <span class="caps">UDA</span> 1.0 and 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 <dt class="arg-name"><code>msearch_port</code></dt>
197 <dd class="arg-description">
198 <p><em>Type:</em>&nbsp;<code>guint16</code></p>
199 <p>The network port to use for M-<span class="caps">SEARCH</span> requests or 0 for&nbsp;random.</p>
200 <table>
201
202
203
204
205
206
207
208
209
210 </table>
211 </dd>
212
213
214
215 <dt class="arg-name"><code>error</code></dt>
216 <dd class="arg-description">
217 <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>
218 <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>
219 <table>
220 <tr><td>The argument can be <code>NULL</code>.</td></tr>
221 <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>
222 <tr><td>The argument will be left initialized to <code>NULL</code> by the constructor if there are no errors.</td></tr>
223 <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>
224 </table>
225 </dd>
226
227 </dl>
228 </div>
229 </div>
230
231
232
233 <div class="return-value toggle-wrapper">
234 <h4 id="return-value">
235 Return value
236 <a href="#return-value" class="anchor"></a>
237 </h4>
238
239 <div class="docblock">
240 <div class="returns">
241 <div class="arg-description">
242 <p><em>Type:</em>&nbsp;<a href="class.Client.html"><code>GSSDPClient</code></a></p>
243 <p>A&nbsp;new <code>GSSDPClient</code> object&nbsp;or <code>NULL</code> on&nbsp;error.</p>
244 </div>
245 <div>
246 <table>
247
248
249
250 <tr><td title="transfer: full">The caller of the function takes ownership of the data, and is responsible for freeing it.</td></tr>
251 <tr><td>The return value can be <code>NULL</code>.</td></tr>
252
253 </table>
254 </div>
255 </div>
256 </div>
257 </div>
258
259 </section>
260 </section>
261
262
263
264
265 <section id="search" class="content hidden"></section>
266
267 <footer>
268
269 </footer>
270 </div>
271 </body>
272 </html>