RTIME

Section: C Library Functions (3)
Page Index

BSD mandoc
 

NAME

rtime - get remote time  

SYNOPSIS

In sys/types.h In sys/time.h In netinet/in.h Ft int Fo rtime Fa struct sockaddr_in *addrp Fa struct timeval *timep Fa struct timeval *timeout Fc  

DESCRIPTION

The Fn rtime function consults the Internet Time Server at the address pointed to by Fa addrp and returns the remote time in the Vt timeval struct pointed to by Fa timep . Normally, the UDP protocol is used when consulting the Time Server. The Fa timeout argument specifies how long the routine should wait before giving up when waiting for a reply. If Fa timeout is specified as NULL however, the routine will instead use TCP and block until a reply is received from the time server.  

RETURN VALUES

Rv -std rtime  

AVAILABILITY

The Fn rtime function is part of libtirpc.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
AVAILABILITY