Protocol Property
The protocol used by the class.
Syntax
ANSI (Cross Platform) int GetProtocol();
int SetProtocol(int iProtocol); Unicode (Windows) INT GetProtocol();
INT SetProtocol(INT iProtocol);
Possible Values
TP_TIME(0),
TP_SNTP(1)
@property (nonatomic,readwrite,assign,getter=protocol,setter=setProtocol:) int protocol; - (int)protocol; - (void)setProtocol:(int)newProtocol;
Possible Values
TP_TIME(0),
TP_SNTP(1)
#define PID_NETCLOCK_PROTOCOL 4 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
1
Remarks
This property is the protocol used by the component. Use this property to specify which protocol the class will use to connect to the server. By default, this property is tpSNTP (1). The Time Protocol may be selected by setting this property to tpTimeProtocol (0).
Data Type
Integer