diff options
author | akhropov <akhropov@yandex-team.ru> | 2022-02-10 16:46:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:32 +0300 |
commit | 298c6da79f1d8f35089a67f463f0b541bec36d9b (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/network/socket.h | |
parent | 00afc96e9c0298054b7386fa7fb9e3cc3d67b974 (diff) | |
download | ydb-298c6da79f1d8f35089a67f463f0b541bec36d9b.tar.gz |
Restoring authorship annotation for <akhropov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network/socket.h')
-rw-r--r-- | util/network/socket.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/network/socket.h b/util/network/socket.h index 4fb3926110..40c8648b40 100644 --- a/util/network/socket.h +++ b/util/network/socket.h @@ -14,10 +14,10 @@ #include <cerrno> -#ifndef INET_ADDRSTRLEN +#ifndef INET_ADDRSTRLEN #define INET_ADDRSTRLEN 16 -#endif - +#endif + #if defined(_unix_) #define get_host_error() h_errno #elif defined(_win_) @@ -46,15 +46,15 @@ int poll(struct pollfd fds[], nfds_t nfds, int timeout) noexcept; #else #define poll(fds, nfds, timeout) WSAPoll(fds, nfds, timeout) #endif - + int inet_aton(const char* cp, struct in_addr* inp); - + #define get_host_error() WSAGetLastError() #define SHUT_RD SD_RECEIVE #define SHUT_WR SD_SEND #define SHUT_RDWR SD_BOTH - + #define INFTIM (-1) #endif |