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

We have successfully connected to this peer&period; Calling this function updates the CAddress&apos;s nTime, which is used in our IsTerrible() decisions and gossiped to peers&period; Callers should be careful that updating this information doesn&apos;t leak topology information to network spies&period;

== Synopsis

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

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

== Description

net&lowbar;processing calls this function when it _disconnects_ from a peer to not leak information about currently connected peers&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *addr* [in]
| The address of the peer we were connected to
| *time* [in]
| The time that we were last connected to this peer
|===


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