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

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

RTIME(3)

Contents


NAME    [Toc]    [Back]

     rtime -- get remote time

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

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 argument 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 rtime() function returns the value 0 if successful; otherwise the
     value -1 is returned and the global variable errno is set to indicate the
     error.

SEE ALSO    [Toc]    [Back]

      
      
     timed(8)


FreeBSD 5.2.1		       November 22, 1987		 FreeBSD 5.2.1
[ 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