[#ReadFromStream]
= ReadFromStream
:mrdocs:

Reads peer addresses from a stream into the address manager&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
ReadFromStream(
    xref:AddrMan.adoc[AddrMan]& addr,
    xref:DataStream.adoc[DataStream]& ssPeers);
----

== Description

Only used by tests&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *addr*
| The address manager to populate&period;
| *ssPeers*
| The input stream holding the serialized peer addresses&period;
|===


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