[#CService-2constructor-041]
= xref:CService.adoc[CService]::CService
:relfileprefix: ../
:mrdocs:

Construct a service from an IPv4 socket address&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
CService(sockaddr&lowbar;in const& addr);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *addr*
| The IPv4 socket address to read the address and port from&period;
|===


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