LCOV - code coverage report
Current view: top level - src/ipc - types.h Coverage Total Hit
Test: total_coverage.info Lines: 100.0 % 1 1
Test Date: 2026-11-25 06:45:13 Functions: - 0 0

            Line data    Source code
       1              : // Copyright (c) The Bitcoin Core developers
       2              : // Distributed under the MIT software license, see the accompanying
       3              : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4              : 
       5              : //! @file
       6              : //! @brief Home for public enum and struct type definitions.
       7              : //!
       8              : //! These are used internally by ipc code, but also used externally by wallet,
       9              : //! mining or GUI code.
      10              : //!
      11              : //! This file is intended to define only simple types that do not have external
      12              : //! dependencies. More complicated types should be defined in dedicated header
      13              : //! files.
      14              : 
      15              : #ifndef BITCOIN_IPC_TYPES_H
      16              : #define BITCOIN_IPC_TYPES_H
      17              : 
      18              : #include <cstddef>
      19              : #include <string>
      20              : 
      21              : namespace ipc {
      22              : 
      23              : //! Default accepted client connection limit for each IPC listening socket.
      24              : inline constexpr size_t DEFAULT_MAX_CONNECTIONS{16};
      25              : 
      26              : //! Maximum accepted client connection limit for an IPC listening socket.
      27              : //! This conservative bound leaves ample room for other file descriptor
      28              : //! reservations.
      29              : inline constexpr size_t MAX_CONNECTIONS{256};
      30              : 
      31           60 : struct ListenAddress {
      32              :     //! Socket address passed to ipc::Process::bind(), with any -ipcbind socket
      33              :     //! options stripped.
      34              :     std::string address;
      35              : 
      36              :     //! Maximum simultaneous client connections accepted by this listener.
      37              :     size_t max_connections{DEFAULT_MAX_CONNECTIONS};
      38              : };
      39              : 
      40              : } // namespace ipc
      41              : 
      42              : #endif // BITCOIN_IPC_TYPES_H
        

Generated by: LCOV version 2.0-1