rtime.3 (7f3dea244c40159a41ab22da77a434d7c5b5e85a) | rtime.3 (c6ff3a1bf74d96278726113478b2c66884aab584) |
---|---|
1.\" @(#)rtime.3n 2.1 88/08/08 4.0 RPCSRC; from 1.5 88/02/08 SMI 2.\" $FreeBSD$ 3.\" 4.TH RTIME 3 "22 November 1987" 5.SH NAME 6rtime \- get remote time 7.SH SYNOPSIS 8.nf --- 11 unchanged lines hidden (view full) --- 20consults the Internet Time Server at the address pointed to by 21.I addrp 22and returns the remote time in the 23.B timeval 24struct pointed to by 25.IR timep . 26Normally, the 27.SM UDP | 1.\" @(#)rtime.3n 2.1 88/08/08 4.0 RPCSRC; from 1.5 88/02/08 SMI 2.\" $FreeBSD$ 3.\" 4.TH RTIME 3 "22 November 1987" 5.SH NAME 6rtime \- get remote time 7.SH SYNOPSIS 8.nf --- 11 unchanged lines hidden (view full) --- 20consults the Internet Time Server at the address pointed to by 21.I addrp 22and returns the remote time in the 23.B timeval 24struct pointed to by 25.IR timep . 26Normally, the 27.SM UDP |
28protocol is used when consulting the Time Server. The | 28protocol is used when consulting the Time Server. 29The |
29.I timeout 30parameter specifies how long the 31routine should wait before giving 32up when waiting for a reply. If 33.I timeout 34is specified as 35.SM NULL\s0, 36however, the routine will instead use 37.SM TCP 38and block until a reply is received from the time server. 39.LP | 30.I timeout 31parameter specifies how long the 32routine should wait before giving 33up when waiting for a reply. If 34.I timeout 35is specified as 36.SM NULL\s0, 37however, the routine will instead use 38.SM TCP 39and block until a reply is received from the time server. 40.LP |
40The routine returns 0 if it is successful. Otherwise, | 41The routine returns 0 if it is successful. 42Otherwise, |
41it returns \-1 and 42.B errno 43is set to reflect the cause of the error. 44.SH "SEE ALSO" 45.BR timed (8c) | 43it returns \-1 and 44.B errno 45is set to reflect the cause of the error. 46.SH "SEE ALSO" 47.BR timed (8c) |