aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba/v6/udp_client_server.cpp
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-08-16 22:35:50 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-08-16 22:43:57 +0300
commit2fcc3532d5bfd8ccb3fb5b884088c01376c7888d (patch)
tree9040d37b083ba19eed43ffa2dbefcf6b4c70d093 /library/cpp/netliba/v6/udp_client_server.cpp
parent4216b16bbaa20122c440773c8360527e846305cc (diff)
downloadydb-2fcc3532d5bfd8ccb3fb5b884088c01376c7888d.tar.gz
Intermediate changes
Diffstat (limited to 'library/cpp/netliba/v6/udp_client_server.cpp')
-rw-r--r--library/cpp/netliba/v6/udp_client_server.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/library/cpp/netliba/v6/udp_client_server.cpp b/library/cpp/netliba/v6/udp_client_server.cpp
index 14f60625f2..200daa387d 100644
--- a/library/cpp/netliba/v6/udp_client_server.cpp
+++ b/library/cpp/netliba/v6/udp_client_server.cpp
@@ -31,12 +31,10 @@ namespace NNetliba {
// тогда на приемнике повиснет пакет. Этот пакет мы зашибем по этому таймауту
const float UDP_MAX_INPUT_DATA_WAIT = UDP_TRANSFER_TIMEOUT * 2;
- enum {
- UDP_PACKET_SIZE_FULL = 8900, // used for ping to detect jumbo-frame support
- UDP_PACKET_SIZE = 8800, // max data in packet
- UDP_PACKET_SIZE_SMALL = 1350, // 1180 would be better taking into account that 1280 is guaranteed ipv6 minimum MTU
- UDP_PACKET_BUF_SIZE = UDP_PACKET_SIZE + 100,
- };
+ constexpr int UDP_PACKET_SIZE_FULL = 8900; // used for ping to detect jumbo-frame support
+ constexpr int UDP_PACKET_SIZE = 8800; // max data in packet
+ constexpr int UDP_PACKET_SIZE_SMALL = 1350; // 1180 would be better taking into account that 1280 is guaranteed ipv6 minimum MTU
+ constexpr int UDP_PACKET_BUF_SIZE = UDP_PACKET_SIZE + 100;
//////////////////////////////////////////////////////////////////////////
struct TUdpCompleteInTransfer {