krb5_getportbyname (3) Linux Manual Page
NAME
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 Fc
DESCRIPTION
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);
SEE ALSO
krb5(3)
