summaryrefslogtreecommitdiff
path: root/src/net
AgeCommit message (Collapse)Author
2021-04-06net/SocketError: use `constexpr`Max Kellermann
2021-04-06net/SocketError: use `auto`Max Kellermann
2021-04-06net/SocketError: change "const" to "pure"Max Kellermann
2021-02-12use std::size_tMax Kellermann
2021-02-12use [[gnu::pure]] instead of gcc_pureMax Kellermann
This is semi-standard and doesn't require the util/Compiler.h header.
2021-01-21Merge branch 'v0.22.x'Max Kellermann
2021-01-21net/SocketError: add syscall specific check functionsMax Kellermann
Fixes Windows compatibility.
2021-01-21net/SocketError: relicense to BSD-2Max Kellermann
2021-01-12net/Resolver: add simple getaddrinfo() wrapperMax Kellermann
2021-01-12net/ToString: include cleanupMax Kellermann
2021-01-11net/SocketError: relicense to BSD-2Max Kellermann
2021-01-01Merge branch 'v0.22.x'Max Kellermann
2021-01-01copyright year 2021Max Kellermann
2020-11-30net/SocketAddress: add CastTo()Max Kellermann
2020-11-30net/IPv[46]Address: pass SocketAddress by value to Cast()Max Kellermann
2020-11-30net/IPv[46]Address: add Cast(const sockaddr_in&)Max Kellermann
2020-10-15Merge branch 'v0.22.x' into masterMax Kellermann
2020-10-15net/UniqueSocketDescriptor: add `noexcept`Max Kellermann
2020-10-15net/SocketAddress: add missing includeMax 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