Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
NAME(3)			 BSD Library Functions Manual		       NAME(3)

NAME
     krb5_getportbyname	-- get port number by name

LIBRARY
     Kerberos 5	Library	(libkrb5, -lkrb5)

SYNOPSIS
     #include <krb5.h>

     int
     krb5_getportbyname(krb5_context context, const char *service,
	 const char *proto, int	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 it
     isn't 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(3)

HEIMDAL				August 15, 2004			       HEIMDAL

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=krb5_getportbyname&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help