summaryrefslogtreecommitdiff
path: root/gio/gsocketaddressenumerator.c
Commit message (Collapse)AuthorAgeFilesLines
* gsocketaddressenumerator: add nullable annotation to the result of `next`Matteo Biggio2022-05-311-2/+2
| | | | | The returned `SocketAddress` is going to be NULL when the stream of socket addresses is finished
* gio: Add SPDX license headers automaticallyPhilip Withnall2022-05-181-0/+2
| | | | | | | | | | | | | | Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files gio/*.[ch] | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1415
* Fix issue in GSocketAddressEnumerator documentationMichael Catanzaro2020-06-181-1/+1
| | | | | | | We should stop iterating the enumerator the first time it returns NULL, even if error is set. Fixes #1982
* docs: Fix pluralised links to symbolsPhilip Withnall2019-03-151-1/+1
| | | | | | | | | | | While gtk-doc can currently detect a link to a symbol which has been pluralised by adding ‘s’, it can’t detect when ‘es’ is added. While that’s being fixed, reword the documentation so the links are generated correctly anyway. gtk-doc fix here: https://gitlab.gnome.org/GNOME/gtk-doc/merge_requests/22 Signed-off-by: Philip Withnall <withnall@endlessm.com>
* gio: Add missing documentation for G{Proxy,Socket}AddressEnumeratorPhilip Withnall2018-12-171-0/+20
| | | | Signed-off-by: Philip Withnall <withnall@endlessm.com>
* gsocketaddressenumerator: Make it an error to call next_async before finishPatrick Griffis2018-12-111-0/+2
| | | | | It logically doesn't make sense to repeatedly call next_async() before the previous one has finished.
* gnetworkaddress: Implement parallel ipv4 and ipv6 dns lookupsPatrick Griffis2018-12-111-1/+1
| | | | | | As RFC 8305 recommends we can start multiple DNS queries in parallel to more quickly make an initial response, especially when one is particularly slow/broken.
* gio/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet2017-05-291-1/+1
| | | | | | | | | | | | | | | | | Sub-directories inside gio/ already processed in a previous commit: - fam/ - gdbus-2.0/ (which contains only codegen/) - gvdb/ - inotify/ - tests/ - win32/ - xdgmime/ Other sub-directories inside gio/: - completion/: no license headers - kqueue/: not LGPL, BSD-style license https://bugzilla.gnome.org/show_bug.cgi?id=776504
* Drop trailing semi-colon from G_DEFINE_ macroEmmanuele Bassi2017-04-101-1/+1
| | | | | | | | It's unnecessary, and only adds visual noise; we have been fairly inconsistent in the past, but the semi-colon-less version clearly dominates in the code base. https://bugzilla.gnome.org/show_bug.cgi?id=669355
* introspection: use (nullable) or (optional) instead of (allow-none)Christian Hergert2016-11-221-2/+2
| | | | | | | | If we have an input parameter (or return value) we need to use (nullable). However, if it is an (inout) or (out) parameter, (optional) is sufficient. It looks like (nullable) could be used for everything according to the Annotation documentation, but (optional) is more specific.
* gio: Add source tags to various GTasks constructed in GLibPhilip Withnall2016-06-291-0/+1
| | | | | | | | This makes them easier to identify when debugging and profiling. This patch was somewhat less than interesting to write. https://bugzilla.gnome.org/show_bug.cgi?id=767765
* docs: use "Returns:" consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of "Return value:".
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* gio: port networking classes from GSimpleAsyncResult to GTaskDan Winship2012-10-101-20/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=661767
* Add GI annotations to Gio lowlevel network support classesPavel Holejsovsky2010-12-291-4/+5
|
* Use g_simple_async_result_{new_,}take_errorChristian Persch2010-11-031-4/+2
| | | | Bug #633685.
* Add a lot of missing annotationsJohan Dahlin2010-09-241-2/+2
|
* gio/: fully remove gioalias hacksRyan Lortie2010-07-071-4/+0
|
* Documentation and coding style fixupsMatthias Clasen2009-05-271-17/+17
| | | | Lots of pedanic changes.
* GResolver wrappers: GNetworkAddress, GNetworkService, GSocketConnectableDan Winship2009-04-221-0/+191
Higher-level wrappers around GResolver. GSocketConnectable provides an interface for synchronously or asynchronously iterating multiple socket addresses, with GNetworkAddress and GNetworkService providing interfaces based on hostname and SRV record resolution. Part of #548466.