[#CAddress-2constructor-08]
= xref:CAddress.adoc[CAddress]::CAddress
:relfileprefix: ../
:mrdocs:

Constructs an address from a service endpoint, its service flags, and a last&hyphen;seen time&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CAddress(
    xref:CService.adoc[CService] ipIn,
    xref:ServiceFlags.adoc[ServiceFlags] nServicesIn,
    xref:NodeSeconds.adoc[NodeSeconds] time);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ipIn*
| The service endpoint (network address and port)&period;
| *nServicesIn*
| The advertised service flags for this address&period;
| *time*
| The last time this address was seen&period;
|===


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