summaryrefslogtreecommitdiff
path: root/src/net
AgeCommit message (Collapse)Author
2021-01-01copyright year 2021Max Kellermann
2020-10-15net/SocketAddress: include cleanupMax Kellermann
2020-09-22net/SocketError: work around -Wvla by defining a constexpr variableMax Kellermann
2020-09-16remove GCC5 hacksRosen Penev
GCC5 cannot build mpd. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-23net/{Resolver,HostParser}: include <cstring>Max Kellermann
Fixup after e4dad42ca123b9f0f987218c68c42422d6735c0a
2020-07-23net/AllocatedSocketAddress: add missing forward declarationMax Kellermann
2020-07-23net/StaticSocketAddress: add IWYU pragmaMax Kellermann
2020-07-23include cleanupMax Kellermann
2020-05-30use std chr functionsRosen Penev
The ones in std have overloads for const char/char. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-05system/FileDescriptor: move to io/Max Kellermann
2020-03-12replace stdint.h with cstdintRosen Penev
The former is deprecated by C++14. The standard says they are the same: The header defines all types and macros the same as the C standard library header<stdint.h>. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-12change errno.h to cerrnoRosen Penev
The former is deprecated by C++14. It's also functionally the same. From the standard: 19.4 The header<cerrno>is described in Table 43. Its contents are the same as the POSIX header<errno.h>,except that errno shall be defined as a macro. [Note: The intent is to remain in close alignment with the POSIX standard.] A separate errno value shall be provided for each thread. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-12replace assert.h with cassertRosen Penev
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-01*: use `auto`Max Kellermann
2020-02-01net/StaticSocketAddress: make the cast operators `constexpr`Max Kellermann
2020-02-01net/AddressInfo: add MakeAddrInfo()Max Kellermann
2020-01-18copyright year 2020Max Kellermann
2019-08-26net/UniqueSocketDescriptor: import std::swap()Max Kellermann
2019-08-26net/UniqueSocketDescriptor: update copyright yearMax Kellermann
2019-08-26net/SocketDescriptor: expose CheckDuplicate()Max Kellermann
2019-08-26net/AllocatedSocketAddress: remove config.h, we have Features.hxx alreadyMax Kellermann
2019-08-26net/AddressInfo: include Features.hxx instead of config.hMax Kellermann
2019-08-19util/PrintException, ...: update copyrightMax Kellermann
2019-08-03util/Macros: replace with std::size() (C++17)Max Kellermann
2019-07-29net/Resolver: replace memset(0) with empty C++ initializer listMax Kellermann
2019-07-05include cleanups (powered by iwyu)Max Kellermann
2019-07-03net/AllocatedSocketAddress: import std::swapMax Kellermann
2019-07-03net/{Allocated,Static}SocketAddress: use IPv[46]Address::SetPort()Max Kellermann
2019-07-03net/ToString: move UnmapV4() to class IPv6AddressMax Kellermann
2019-07-03net/ToString: UnmapV4() returns IPv4AddressMax Kellermann
2019-07-03net/SocketAddress: use IPv[46]Address::Cast()Max Kellermann
2019-06-17Copyright year 2019Max Kellermann
2019-04-04Merge branch 'v0.21.x'Max Kellermann
2019-04-03net/IPv[46]Address: add cast to void* to fix GCC9 build failureMax Kellermann
Fixes: src/net/IPv4Address.hxx: In member function 'constexpr IPv4Address::operator SocketAddress() const': src/net/IPv4Address.hxx:171:24: error: a reinterpret_cast is not a constant expression 171 | return SocketAddress((const struct sockaddr *)&address, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/net/IPv6Address.hxx: In member function 'constexpr IPv6Address::operator SocketAddress() const': src/net/IPv6Address.hxx:138:24: error: a reinterpret_cast is not a constant expression 138 | return SocketAddress((const struct sockaddr *)&address, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Closes https://github.com/MusicPlayerDaemon/MPD/issues/522
2019-03-21Merge branch 'v0.21.x'Max Kellermann
2019-03-20event/ServerSocket, doc, ...: refer to AF_LOCAL as "local socket"Max Kellermann
.. and not "UNIX domain socket. Be consistent about the naming.
2019-03-08system/ByteOrder: move to util/Max Kellermann
2019-02-27net/StaticSocketAddress: remove GetAddress()Max Kellermann
2019-02-27net/StaticSocketAddress: add GetLocalRaw()Max Kellermann
2019-02-27net/SocketDescriptor: add SetTcpUserTimeout()Max Kellermann
2019-02-19net/IPv[46]Address: update copyrightMax Kellermann
2019-02-19net/AllocatedSocketAddress: add methods IsV6Any(), IsV4Mapped()Max Kellermann
2019-02-19net/SocketAddress: add method GetLocalPath()Max Kellermann
2019-02-19net/AllocatedSocketAddress: add method GetLocalRaw()Max Kellermann
2019-01-22net/SocketAddress: add `constexpr`Max Kellermann
2019-01-21net/HostParser: add `noexcept`Max Kellermann
2019-01-20net/IPv4Address: fix comment typoMax Kellermann
2019-01-14net/IPv[46]Address: make the initializers even more portableMax Kellermann
Similar to 5a5229b49943c7032d83ae665552b4dc3e334820: use more C++14 constexpr.
2019-01-04Build fix. This struct is the same on Haiku and on Linux, still gccZoltán Mizsei
fails on it. This fixes.
2018-11-19check.h: remove obsolete headerMax Kellermann
Since we switched from autotools to Meson in commit 94592c14062d5afc9482d11baa401648082022c0, we don't need to include `config.h` early to properly enable large file support. Meson passes the required macros on the compiler command line instead of defining them in `config.h`. This means we can include `config.h` at any time, whenever we want to check its macros, and there are no ordering constraints.