sntpcLib.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- /* sntpcLib.h - Simple Network Time Protocol client include file */
- /* Copyright 1984-1997 Wind River Systems, Inc. */
- /*
- Modification history
- --------------------
- 01c,25aug99,cno Add extern "C" definition (SPR21825)
- 01b,15jul97,spm code cleanup, documentation, and integration; entered in
- source code control
- 01a,20apr97,kyc written
- */
- #ifndef __INCsntpch
- #define __INCsntpch
- /* includes */
- #include "sntp.h"
- /* defines */
- #define S_sntpcLib_INVALID_PARAMETER (M_sntpcLib | 1)
- #define S_sntpcLib_INVALID_ADDRESS (M_sntpcLib | 2)
- #define S_sntpcLib_TIMEOUT (M_sntpcLib | 3)
- #define S_sntpcLib_VERSION_UNSUPPORTED (M_sntpcLib | 4)
- #define S_sntpcLib_SERVER_UNSYNC (M_sntpcLib | 5)
- #define SNTP_CLIENT_REQUEST 0x0B /* standard SNTP client request */
- #ifdef __cplusplus
- extern "C" {
- #endif
- IMPORT STATUS sntpcInit (u_short);
- IMPORT STATUS sntpcTimeGet (char *, u_int, struct timespec *);
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCsntpch */