.\" @(#)rtime.3n 2.1 88/08/08 4.0 RPCSRC; from 1.5 88/02/08 SMI
.TH RTIME 3 "22 November 1987"
.B #include <sys/types.h>
.B #include <netinet/in.h>
.B int rtime(addrp, timep, timeout)
.B struct sockaddr_in \(**addrp;
.B struct timeval \(**timep;
.B struct timeval \(**timeout;
consults the Internet Time Server at the address pointed to by
and returns the remote time in the
protocol is used when consulting the Time Server. The
parameter specifies how long the
routine should wait before giving
up when waiting for a reply. If
however, the routine will instead use
and block until a reply is received from the time server.
The routine returns 0 if it is successful. Otherwise,
is set to reflect the cause of the error.