[#AddLocal-06] = AddLocal :mrdocs: `AddLocal` overloads == Synopses Declared in `<net.h>` Record a local address that we may advertise, scored by nScore. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:AddLocal-0ab.adoc[AddLocal]( xref:CNetAddr.adoc[CNetAddr] const& addr, int nScore = LOCAL_NONE, bool add_even_if_unreachable = false); ---- [.small]#xref:AddLocal-0ab.adoc[_» more..._]# Record a local address (with port) that we may advertise, scored by nScore. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:AddLocal-0af.adoc[AddLocal]( xref:CService.adoc[CService] const& addr, int nScore = LOCAL_NONE, bool add_even_if_unreachable = false); ---- [.small]#xref:AddLocal-0af.adoc[_» more..._]# == Return Value true if the address was newly recorded or its score was raised. == Parameters [cols="1,4"] |=== | Name| Description | *addr* | the local address to record. | *nScore* | the trust score to assign (see the LOCAL_* levels). | *add_even_if_unreachable* | record the address even if it looks unreachable. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#