[#NetGroupManager-GetGroup]
= xref:NetGroupManager.adoc[NetGroupManager]::GetGroup
:relfileprefix: ../
:mrdocs:

Get the canonical identifier of the network group for address&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::vector&lt;unsigned char&gt;
GetGroup(xref:CNetAddr.adoc[CNetAddr] const& address) const;
----

== Description

The groups are assigned in a way where it should be costly for an attacker to obtain addresses with many different group identifiers, even if it is cheap to obtain addresses with the same identifier&period;

[NOTE]
====
No two connections will be attempted to addresses with the same network group&period;

====

== Return Value

The network group identifier as a byte vector&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *address*
| The address to compute the network group for&period;
|===


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