new manpage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10242 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		
							
								
								
									
										39
									
								
								lib/krb5/krb5_get_all_client_addrs.3
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								lib/krb5/krb5_get_all_client_addrs.3
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| .\" $Id$ | ||||
| .Dd July  1, 2001 | ||||
| .Dt KRB5_GET_ADDRS 3 | ||||
| .Sh NAME | ||||
| .Nm krb5_get_all_client_addrs , | ||||
| .Nm krb5_get_all_server_addrs | ||||
| .Nd return local addresses | ||||
| .Sh SYNOPSIS | ||||
| .Fd #include <krb5.h> | ||||
| .Ft "krb5_error_code" | ||||
| .Fn krb5_get_all_client_addrs "krb5_context context" "krb5_addresses *addrs"  | ||||
| .Ft "krb5_error_code" | ||||
| .Fn krb5_get_all_server_addrs "krb5_context context" "krb5_addresses *addrs"  | ||||
| .Sh DESCRIPTION | ||||
| These functions return in  | ||||
| .Fa addrs | ||||
| a list of addresses associated with the local | ||||
| host. | ||||
| .Pp | ||||
| The server variant returns all configured interface addresses (if | ||||
| possible), including loop-back addresses. This is useful if you want | ||||
| to create sockets to listen to. | ||||
| .Pp | ||||
| The client version will also scan local interfaces (can be turned off | ||||
| by setting | ||||
| .Li libdefaults/scan_interfaces | ||||
| to false in  | ||||
| .Pa krb5.conf ) ,  | ||||
| but will not include loop-back addresses, unless there are no other | ||||
| addresses found. It will remove all addresses included in | ||||
| .Li libdefaults/ignore_addresses | ||||
| but will unconditionally include addresses in | ||||
| .Li libdefaults/extra_addresses . | ||||
| .Pp | ||||
| The returned addresses should be freed by calling  | ||||
| .Fn krb5_free_addresses . | ||||
| .\".Sh EXAMPLE | ||||
| .Sh SEE ALSO | ||||
| .Xr krb5_free_addresses | ||||
							
								
								
									
										23
									
								
								lib/krb5/krb5_timeofday.3
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								lib/krb5/krb5_timeofday.3
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| .\" $Id$ | ||||
| .Dd July  1, 2001 | ||||
| .Dt KRB5_TIMEOFDAY 3 | ||||
| .Sh NAME | ||||
| .Nm krb5_timeofday , | ||||
| .Nm krb5_us_timeofday | ||||
| .Nd whatever these functions do | ||||
| .Sh SYNOPSIS | ||||
| .Fd #include <krb5.h> | ||||
| .Ft "krb5_error_code" | ||||
| .Fn krb5_timeofday "krb5_context context" "krb5_timestamp *timeret"  | ||||
| .Ft "krb5_error_code" | ||||
| .Fn krb5_us_timeofday "krb5_context context" "int32_t *sec" "int32_t *usec"  | ||||
| .Sh DESCRIPTION | ||||
| .Fn krb5_timeofday | ||||
| returns the current time, but adjusted with the time difference | ||||
| between the local host and the KDC. | ||||
| .Fn krb5_us_timeofday | ||||
| also returns microseconds. | ||||
| .Pp | ||||
| .\".Sh EXAMPLE | ||||
| .Sh SEE ALSO | ||||
| .Xr gettimeofday 2 | ||||
		Reference in New Issue
	
	Block a user
	 Johan Danielsson
					Johan Danielsson