Jump to content

Perl Programming/Keywords/getservbyport

From Wikibooks, open books for an open world
Previous: getservbyname Keywords Next: getservent

The getservbyport keyword

[edit | edit source]

The getservbyport function gets the service record given its numeric PORT and PROTOCOL.

Syntax

[edit | edit source]
  getservbyport PORT, PROTOCOL
Previous: getservbyname Keywords Next: getservent