[#GetLocalAddress]
= GetLocalAddress
:mrdocs:

Return the best local address to use when talking to the given peer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CService.adoc[CService]
GetLocalAddress(xref:CNode.adoc[CNode] const& peer);
----

== Return Value

the best local address to advertise to that peer&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *peer*
| the peer we would advertise an address to&period;
|===


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