krb5_getportbyname

Langue: en

Version: 289906 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)


BSD mandoc
HEIMDAL

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)