[#V2Transport-2constructor-07] = xref:V2Transport.adoc[V2Transport]::V2Transport :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<net.h>` Construct a V2 transport with securely generated random keys. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:V2Transport/2constructor-04.adoc[V2Transport]( xref:NodeId-08.adoc[NodeId] nodeid, bool initiating) noexcept; ---- [.small]#xref:V2Transport/2constructor-04.adoc[_» more..._]# Construct a V2 transport with specified keys and garbage (test use only). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:V2Transport/2constructor-02.adoc[V2Transport]( xref:NodeId-08.adoc[NodeId] nodeid, bool initiating, xref:CKey.adoc[CKey] const& key, std::span<std::byte const> ent32, std::vector<uint8_t> garbage) noexcept; ---- [.small]#xref:V2Transport/2constructor-02.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *nodeid* [in] | the node's NodeId (only for debug log output). | *initiating* [in] | whether we are the initiator side. | *key* [in] | the private key to use for this transport. | *ent32* [in] | 32 bytes of entropy used to derive the session. | *garbage* [in] | garbage bytes to send before the garbage terminator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#