[#AddrMan-Connected] = xref:AddrMan.adoc[AddrMan]::Connected :relfileprefix: ../ :mrdocs: We have successfully connected to this peer. Calling this function updates the CAddress's nTime, which is used in our IsTerrible() decisions and gossiped to peers. Callers should be careful that updating this information doesn't leak topology information to network spies. == Synopsis Declared in `<addrman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void Connected( xref:CService.adoc[CService] const& addr, xref:NodeSeconds.adoc[NodeSeconds] time = Now<NodeSeconds>()); ---- == Description net_processing calls this function when it _disconnects_ from a peer to not leak information about currently connected peers. == 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]#