*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> rtime (3)              
Title
Content
Arch
Section
 

rtime(3)

Contents


NAME    [Toc]    [Back]

       rtime - Get remote time

SYNOPSIS    [Toc]    [Back]

       #include   <sys/types.h>  #include  <sys/time.h>  #include
       <netinet/in.h>

       int rtime(
               struct sockaddr_in *addrp,
               struct timeval *timep,
               struct timeval *timeout );

DESCRIPTION    [Toc]    [Back]

       The rtime() function consults the Internet Time Server  at
       the  address  pointed  to  by addrp and returns the remote
       time in the timeval struct pointed to by timep.  Normally,
       the  UDP protocol is used when consulting the Time Server.
       The timeout  parameter  specifies  how  long  the  routine
       should  wait before giving up when waiting for a reply. If
       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    [Toc]    [Back]

       The routine returns 0 if it is successful.  Otherwise,  it
       returns  -1  and  errno is set to reflect the cause of the
       error.

SEE ALSO    [Toc]    [Back]

      
      
       Commands: timed(8), timedc(8)



                                                         rtime(3)
[ Back ]
 Similar pages
Name OS Title
vxfs_ifree_timelag HP-UX VxFS inode free time lag (specifies the minimum time to be spent on a freelist)
create_link HP-UX Creates a soft link and optionally specifies an expiration time and an extension time
adjkerntz FreeBSD adjust local time CMOS clock to reflect time zone changes and keep current timezone offset for the k...
ftime Tru64 Gets and sets date and time and converts time between timeval and timeval64
settimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
gettimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL32TO64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL64TO32 Tru64 Gets and sets date and time and converts time between timeval and timeval64
settimeofday Tru64 Gets and sets date and time and converts time between timeval and timeval64
gettimeofday Tru64 Gets and sets date and time and converts time between timeval and timeval64
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service