The serviceentry class provides methods for retrieving network service definitions. These are usually defined in a file like /etc/services on unix-like systems or C:\Windows\System32\drivers\etc\services on Windows, or are served from another source via the name-service switch.
Services can be looked up by name or number.
In this example, information for the "smtp" service, "tcp" protocol is retrieved.
@serviceentry-name.cpp.html@
In this example, information for "service number 25", "tcp" protocol is retrieved.
@serviceentry-number.cpp.html@