Poster of Linux kernelThe best gift for a Linux geek
NAME

NAME

Section: C Library Functions (3)
Local index Up

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)


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:48:58 GMT, April 16, 2011