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

Construct a service from a network address and port&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CService(
    xref:CNetAddr.adoc[CNetAddr] const& ip,
    uint16&lowbar;t port);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ip*
| The network address of the service&period;
| *port*
| The TCP port in host byte order&period;
|===


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