[#CService-GetPort]
= xref:CService.adoc[CService]::GetPort
:relfileprefix: ../
:mrdocs:

Get the TCP port in host byte order&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
uint16&lowbar;t
GetPort() const;
----

== Return Value

The TCP port in host byte order&period;


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