⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtime.3

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 3
字号:
.\" @(#)rtime.3n	2.1 88/08/08 4.0 RPCSRC; from 1.5 88/02/08 SMI.\" $FreeBSD: src/lib/libc/rpc/rtime.3,v 1.4 2000/03/02 09:13:48 sheldonh Exp $.\".TH RTIME 3  "22 November 1987".SH NAMErtime \- get remote time.SH SYNOPSIS.nf.B #include <sys/types.h>.B #include <sys/time.h>.B #include <netinet/in.h>.LP.B int rtime(addrp, timep, timeout).B struct sockaddr_in \(**addrp;.B struct timeval \(**timep;.B struct timeval \(**timeout;.fi.SH DESCRIPTION.B rtime(\|)consults the Internet Time Server at the address pointed to by.I addrpand returns the remote time in the.B timevalstruct pointed to by.IR timep .Normally, the.SM UDPprotocol is used when consulting the Time Server.The.I timeoutparameter specifies how long theroutine should wait before givingup when waiting for a reply.  If.I timeoutis specified as.SM NULL\s0,however, the routine will instead use.SM TCPand block until a reply is received from the time server..LPThe routine returns 0 if it is successful.Otherwise,it returns \-1 and.B errnois set to reflect the cause of the error..SH "SEE ALSO".BR timed (8c)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -