protocol (property)
The protocol used by the class.
Syntax
@property (nonatomic,readwrite,assign,getter=protocol,setter=setProtocol:) int protocol; - (int)protocol; - (void)setProtocol:(int)newProtocol;
/* Possible Values */
TP_TIME(0),
TP_SNTP(1)
public var protocol_: NetclockProtocols { get {...}
set {...} }
public enum NetclockProtocols : Int32 { case tpTime = 0 case tpSNTP = 1 }
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).