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

Constructors

== Synopses

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

Constructs an address with default&hyphen;initialized fields&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CAddress/2constructor-0b.adoc[CAddress]();
----

[.small]#xref:CAddress/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Constructs an address from a service endpoint and its advertised service flags&period;


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

[.small]#xref:CAddress/2constructor-09.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:CAddress/2constructor-08.adoc[_» more&period;&period;&period;_]#

== 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]#
