[#AddrMan-Attempt]
= xref:AddrMan.adoc[AddrMan]::Attempt
:relfileprefix: ../
:mrdocs:

Mark an entry as connection attempted to&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
Attempt(
    xref:CService.adoc[CService] const& addr,
    bool fCountFailure,
    xref:NodeSeconds.adoc[NodeSeconds] time = Now&lt;NodeSeconds&gt;());
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *addr*
| The address that a connection was attempted to&period;
| *fCountFailure*
| Whether to count this attempt toward the failure counter&period;
| *time*
| The time the connection attempt was made&period;
|===


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