[#CService-2constructor-0a] = xref:CService.adoc[CService]::CService :relfileprefix: ../ :mrdocs: Construct a service from a network address and port. == Synopsis Declared in `<netaddress.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CService( xref:CNetAddr.adoc[CNetAddr] const& ip, uint16_t port); ---- == Parameters [cols="1,4"] |=== | Name| Description | *ip* | The network address of the service. | *port* | The TCP port in host byte order. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#