MAN page from PCLinuxOS lib64tirpc-devel-1.0.1-1pclos2017.x86_64.rpm
Section: C Library Functions (3)Index
- get remote time
In sys/types.hIn sys/time.hIn netinet/in.hFt intFo rtimeFa struct sockaddr_in *addrpFa struct timeval *timepFa struct timeval *timeoutFc
TheFn rtimefunctionconsults the Internet Time Server at the address pointed to byFa addrpand returns the remote time in theVt timevalstruct pointed to byFa timep .Normally, theUDP
protocol is used when consulting the Time Server.TheFa timeoutargument specifies how long theroutine should wait before givingup when waiting for a reply.IfFa timeoutis specified asNULL
however, the routine will instead useTCP
and block until a reply is received from the time server.
Rv -std rtime
TheFn rtimefunction is part of libtirpc.
- RETURN VALUES
This document was created byman2html,using the manual pages.