Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1This fixes several instances where _MSC_VER was2used to determine whether to use afunix.h or not.4See https://github.com/zeromq/libzmq/pull/4678.5--- a/src/ipc_address.hpp6+++ b/src/ipc_address.hpp7@@ -7,7 +7,7 @@9#include <string>11-#if defined _MSC_VER12+#if defined ZMQ_HAVE_WINDOWS13#include <afunix.h>14#else15#include <sys/socket.h>16diff --git a/src/ipc_connecter.cpp b/src/ipc_connecter.cpp17index 3f988745..ed2a0645 10064418--- a/src/ipc_connecter.cpp19+++ b/src/ipc_connecter.cpp20@@ -16,7 +16,7 @@21#include "ipc_address.hpp"22#include "session_base.hpp"24-#ifdef _MSC_VER25+#if defined ZMQ_HAVE_WINDOWS26#include <afunix.h>27#else28#include <unistd.h>29diff --git a/src/ipc_listener.cpp b/src/ipc_listener.cpp30index 50126040..5428579b 10064431--- a/src/ipc_listener.cpp32+++ b/src/ipc_listener.cpp33@@ -17,7 +17,7 @@34#include "socket_base.hpp"35#include "address.hpp"37-#ifdef _MSC_VER38+#ifdef ZMQ_HAVE_WINDOWS39#ifdef ZMQ_IOTHREAD_POLLER_USE_SELECT40#error On Windows, IPC does not work with POLLER=select, use POLLER=epoll instead, or disable IPC transport41#endif42diff --git a/tests/testutil.cpp b/tests/testutil.cpp43index bdc80283..6f21e8f6 10064444--- a/tests/testutil.cpp45+++ b/tests/testutil.cpp46@@ -7,7 +7,7 @@48#if defined _WIN3249#include "../src/windows.hpp"50-#if defined _MSC_VER51+#if defined ZMQ_HAVE_WINDOWS52#if defined ZMQ_HAVE_IPC53#include <direct.h>54#include <afunix.h>
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.