Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

getservbyport()

3 tags 1 category

getservbyport() — Get Internet service which corresponds to port and protocol.

getservbyport returns the Internet service associated with port for the specified protocol as per /etc/services.

Inputs: port: The port number. protocol: protocol is either “tcp” or “udp” (in lowercase).

Returns: Returns the Internet service name as a string, or false on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…