Bitcoin Core 31.99.0
P2P Digital Currency
Namespaces | Functions
protocol.cpp File Reference
#include <interfaces/init.h>
#include <ipc/capnp/context.h>
#include <ipc/capnp/init.capnp.h>
#include <ipc/capnp/init.capnp.proxy.h>
#include <ipc/capnp/protocol.h>
#include <ipc/exception.h>
#include <ipc/protocol.h>
#include <kj/async.h>
#include <mp/proxy-io.h>
#include <mp/proxy-types.h>
#include <mp/util.h>
#include <util/log.h>
#include <util/threadnames.h>
#include <cassert>
#include <cerrno>
#include <future>
#include <memory>
#include <mutex>
#include <optional>
#include <string>
#include <sys/socket.h>
#include <system_error>
#include <thread>
Include dependency graph for protocol.cpp:

Go to the source code of this file.

Namespaces

namespace  ipc
 
namespace  ipc::capnp
 

Functions

std::unique_ptr< Protocol > ipc::capnp::MakeCapnpProtocol (const char *exe_name)
 

Variable Documentation

◆ m_context

Context m_context

Definition at line 147 of file protocol.cpp.

◆ m_exe_name

const char* m_exe_name

Definition at line 146 of file protocol.cpp.

◆ m_loop

std::optional<mp::EventLoop> m_loop

EventLoop object which manages I/O events for all connections.

Definition at line 149 of file protocol.cpp.

◆ m_loop_ref

std::optional<mp::EventLoopRef> m_loop_ref

Reference to the same EventLoop.

Increments the loop’s refcount on creation, decrements on destruction. The loop thread exits when the refcount reaches 0. Other IPC objects also hold their own EventLoopRef.

Definition at line 153 of file protocol.cpp.

◆ m_loop_thread

std::thread m_loop_thread

Definition at line 156 of file protocol.cpp.

◆ m_parent_connection

mp::Connection* m_parent_connection {nullptr}

Connection to parent, if this is a child process spawned by a parent process.

Definition at line 155 of file protocol.cpp.