krb5_getportbyname (3) Linux Manual Page
krb5_getportbyname – get port number by name
Library
Kerberos 5 Library (libkrb5, -lkrb5)Synopsis
In krb5.h Ft int Fo krb5_getportbyname Fa krb5_context context Fa const char *service Fa const char *proto Fa int default_port FcDescription
Fn krb5_getportbyname gets the port number for Fa service / Fa proto pair from the global service table for and returns it in network order. If it isn’t found in the global table, the Fa default_port (given in host order) is returned.Example
int port = krb5_getportbyname(context, "kerberos", "tcp", 88);
