[#CNodeStats]
= CNodeStats
:mrdocs:

Reported statistics about a single peer connection&period;

== Synopsis

Declared in `&lt;net&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CNodeStats;
----

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CNodeStats/addr.adoc[`addr`] 
| Address of this peer&period;
| xref:CNodeStats/addrBind.adoc[`addrBind`] 
| Bind address of our side of the connection&period;
| xref:CNodeStats/addrLocal.adoc[`addrLocal`] 
| Our address, as reported by the peer&period;
| xref:CNodeStats/cleanSubVer.adoc[`cleanSubVer`] 
| Sanitized user agent string reported by the peer&period;
| xref:CNodeStats/fInbound.adoc[`fInbound`] 
| Whether the connection is inbound&period;
| xref:CNodeStats/m_addr_name.adoc[`m&lowbar;addr&lowbar;name`] 
| Human&hyphen;readable address or hostname of the peer&period;
| xref:CNodeStats/m_bip152_highbandwidth_from.adoc[`m&lowbar;bip152&lowbar;highbandwidth&lowbar;from`] 
| This peer requested a high bandwidth (BIP152) connection from us&period;
| xref:CNodeStats/m_bip152_highbandwidth_to.adoc[`m&lowbar;bip152&lowbar;highbandwidth&lowbar;to`] 
| We requested a high bandwidth (BIP152) connection to this peer&period;
| xref:CNodeStats/m_conn_type.adoc[`m&lowbar;conn&lowbar;type`] 
| Type of this connection (inbound, outbound full relay, etc&period;)&period;
| xref:CNodeStats/m_connected.adoc[`m&lowbar;connected`] 
| Time the connection was established&period;
| xref:CNodeStats/m_last_block_time.adoc[`m&lowbar;last&lowbar;block&lowbar;time`] 
| Time of the last block received from this peer&period;
| xref:CNodeStats/m_last_ping_time.adoc[`m&lowbar;last&lowbar;ping&lowbar;time`] 
| Most recent measured ping round&hyphen;trip time&period;
| xref:CNodeStats/m_last_recv.adoc[`m&lowbar;last&lowbar;recv`] 
| Time of the last receive from this peer&period;
| xref:CNodeStats/m_last_send.adoc[`m&lowbar;last&lowbar;send`] 
| Time of the last send to this peer&period;
| xref:CNodeStats/m_last_tx_time.adoc[`m&lowbar;last&lowbar;tx&lowbar;time`] 
| Time of the last transaction received from this peer&period;
| xref:CNodeStats/m_mapped_as.adoc[`m&lowbar;mapped&lowbar;as`] 
| Autonomous system number the peer maps to, if known&period;
| xref:CNodeStats/m_min_ping_time.adoc[`m&lowbar;min&lowbar;ping&lowbar;time`] 
| Lowest ping round&hyphen;trip time measured for this peer&period;
| xref:CNodeStats/m_network.adoc[`m&lowbar;network`] 
| Network the peer connected through&period;
| xref:CNodeStats/m_permission_flags.adoc[`m&lowbar;permission&lowbar;flags`] 
| Permission flags granted to this peer&period;
| xref:CNodeStats/m_session_id.adoc[`m&lowbar;session&lowbar;id`] 
| BIP324 session id string in hex, if any&period;
| xref:CNodeStats/m_transport_type.adoc[`m&lowbar;transport&lowbar;type`] 
| Transport protocol type&period;
| xref:CNodeStats/mapRecvBytesPerMsgType.adoc[`mapRecvBytesPerMsgType`] 
| Bytes received from this peer, broken down by message type&period;
| xref:CNodeStats/mapSendBytesPerMsgType.adoc[`mapSendBytesPerMsgType`] 
| Bytes sent to this peer, broken down by message type&period;
| xref:CNodeStats/nRecvBytes.adoc[`nRecvBytes`] 
| Total number of bytes received from this peer&period;
| xref:CNodeStats/nSendBytes.adoc[`nSendBytes`] 
| Total number of bytes sent to this peer&period;
| xref:CNodeStats/nVersion.adoc[`nVersion`] 
| Protocol version advertised by the peer&period;
| xref:CNodeStats/nodeid.adoc[`nodeid`] 
| Unique identifier of the peer&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
