TimeServer Property

The time server from which to request the time.

Syntax

ANSI (Cross Platform)
char* GetTimeServer();
int SetTimeServer(const char* lpszTimeServer); Unicode (Windows) LPWSTR GetTimeServer();
INT SetTimeServer(LPCWSTR lpszTimeServer);
@property (nonatomic,readwrite,assign,getter=timeServer,setter=setTimeServer:) NSString* timeServer;
- (NSString*)timeServer;
- (void)setTimeServer:(NSString*)newTimeServer;
#define PID_NETCLOCK_TIMESERVER 8

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_NetClock_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_NetClock_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

"pool.ntp.org"

Remarks

This property contains the time server from which to request the time. This property should be set to a valid internet address of a time server. The server will reply with its current time (GMT).

When Protocol is set to SNTP another public server that may be used is "time.google.com".

Time requests are sent to port TimePort on the TimeServer.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]