mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-05 10:17:30 -05:00
19 lines
515 B
C
19 lines
515 B
C
|
// Copyright (c) 2020-2021 The Bitcoin Core developers
|
||
|
// Distributed under the MIT software license, see the accompanying
|
||
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
||
|
#ifndef BITCOIN_UTIL_SOCK_H
|
||
|
#define BITCOIN_UTIL_SOCK_H
|
||
|
|
||
|
#include <compat.h>
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
/** Return readable error string for a network error code */
|
||
|
std::string NetworkErrorString(int err);
|
||
|
|
||
|
/** Close socket and set hSocket to INVALID_SOCKET */
|
||
|
bool CloseSocket(SOCKET& hSocket);
|
||
|
|
||
|
#endif // BITCOIN_UTIL_SOCK_H
|