diff options
Diffstat (limited to '3rdparty/asio/include/asio/ip/udp.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/ip/udp.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/3rdparty/asio/include/asio/ip/udp.hpp b/3rdparty/asio/include/asio/ip/udp.hpp index a011accaff2..50c667a5371 100644 --- a/3rdparty/asio/include/asio/ip/udp.hpp +++ b/3rdparty/asio/include/asio/ip/udp.hpp @@ -2,7 +2,7 @@ // ip/udp.hpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -46,31 +46,31 @@ public: typedef basic_endpoint<udp> endpoint; /// Construct to represent the IPv4 UDP protocol. - static udp v4() + static udp v4() noexcept { return udp(ASIO_OS_DEF(AF_INET)); } /// Construct to represent the IPv6 UDP protocol. - static udp v6() + static udp v6() noexcept { return udp(ASIO_OS_DEF(AF_INET6)); } /// Obtain an identifier for the type of the protocol. - int type() const + int type() const noexcept { return ASIO_OS_DEF(SOCK_DGRAM); } /// Obtain an identifier for the protocol. - int protocol() const + int protocol() const noexcept { return ASIO_OS_DEF(IPPROTO_UDP); } /// Obtain an identifier for the protocol family. - int family() const + int family() const noexcept { return family_; } @@ -95,7 +95,7 @@ public: private: // Construct with a specific family. - explicit udp(int protocol_family) + explicit udp(int protocol_family) noexcept : family_(protocol_family) { } |