Skip to content

Commit

Permalink
ASYNC CONNECT
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Mar 28, 2024
1 parent 62dc06a commit 20c74bd
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 46 deletions.
7 changes: 7 additions & 0 deletions nano/lib/stats_enums.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,18 @@ enum class detail : uint8_t
accept_error,
accept_failure,
accept_limits_exceeded,
attempts_limits_exceeded,
attempt_in_progress,
close_error,
max_per_ip,
max_per_subnetwork,
max_attempts,
excluded,
erase_dead,
connect_initiate,
connect_failure,
connect_error,
attempt_timeout,

// tcp_server
handshake,
Expand Down
2 changes: 2 additions & 0 deletions nano/node/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ namespace nano
{
using endpoint = boost::asio::ip::udp::endpoint;
using tcp_endpoint = boost::asio::ip::tcp::endpoint;
using ip_address = boost::asio::ip::address;
using ip_port = uint16_t;

bool parse_port (std::string const &, uint16_t &);
bool parse_address (std::string const &, boost::asio::ip::address &);
Expand Down
Loading

0 comments on commit 20c74bd

Please sign in to comment.