[#CNode-2constructor-0d] = xref:CNode.adoc[CNode]::CNode :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<net.h>` Deleted copy constructor; nodes are non‐copyable. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CNode/2constructor-05.adoc[CNode](xref:CNode.adoc[CNode] const& other) = delete; ---- [.small]#xref:CNode/2constructor-05.adoc[_» more..._]# Construct a peer connection with the given identity, socket, addresses and options. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CNode/2constructor-0f.adoc[CNode]( xref:NodeId-08.adoc[NodeId] id, std::shared_ptr<Sock> sock, xref:CAddress.adoc[CAddress] const& addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, xref:CService.adoc[CService] const& addrBindIn, std::string const& addrNameIn, xref:ConnectionType.adoc[ConnectionType] conn_type_in, bool inbound_onion, uint64_t network_key, xref:CNodeOptions.adoc[CNodeOptions]&& node_opts = {}); ---- [.small]#xref:CNode/2constructor-0f.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | the node that would be copied from. | *id* | the unique identifier for this peer. | *sock* | the connected socket used to communicate with the peer. | *addrIn* | the address of the peer. | *nKeyedNetGroupIn* | the network group key used to bucket this peer. | *nLocalHostNonceIn* | the local nonce used to detect connections to ourselves. | *addrBindIn* | the bind address of our side of the connection. | *addrNameIn* | the human‐readable address or hostname of the peer. | *conn_type_in* | the type of this connection. | *inbound_onion* | whether this is an inbound onion (Tor) connection. | *network_key* | the network key used to prevent cross‐network fingerprinting. | *node_opts* | additional per‐connection options. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#