[#CConnman-2constructor]
= xref:CConnman.adoc[CConnman]::CConnman
:relfileprefix: ../
:mrdocs:

Construct a connection manager with the given randomness seeds and dependencies&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CConnman(
    uint64&lowbar;t seed0,
    uint64&lowbar;t seed1,
    xref:AddrMan.adoc[AddrMan]& addrman,
    xref:NetGroupManager.adoc[NetGroupManager] const& netgroupman,
    xref:CChainParams.adoc[CChainParams] const& params,
    bool network&lowbar;active = true,
    std::shared&lowbar;ptr&lt;CThreadInterrupt&gt; interrupt&lowbar;net = std&colon;&colon;make&lowbar;shared&lt;CThreadInterrupt&gt;());
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *seed0*
| first half of the seed for deterministic randomizers&period;
| *seed1*
| second half of the seed for deterministic randomizers&period;
| *addrman*
| the address manager used to select and store peer addresses&period;
| *netgroupman*
| the network group manager used for peer bucketing&period;
| *params*
| the chain parameters currently in use&period;
| *network&lowbar;active*
| whether networking starts out active&period;
| *interrupt&lowbar;net*
| interrupt used to unblock and shut down network operations&period;
|===


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