man krb5_getportbyname (Fonctions bibliothèques) - krb5_getportbyname
NAME
krb5_getportbyname - get port number by name
LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
SYNOPSIS
krb5_context contextconst char *serviceconst char *protoint default_port
DESCRIPTION
krb5_getportbyname
gets the port number for service / proto pair from the global service table for and returns it in network order. If its not found in the global table, the default_port (given in host order) is returned.
EXAMPLE
int port = krb5_getportbyname(context, "kerberos", "tcp", 88);
SEE ALSO
krb5()