Search: 
Available in: IP*WORKS!
Netclock Class
NetClock Component [IP*Works! V8]

Properties   Methods   Events   Configuration Settings  

The NetClock component provides the current (GMT) time from an Internet Time Server.

NOTE: What follows is a very short description of the component interfaces. For more information, please consult the help files that come with the respective package.

Remarks

The NetClock component implements a standard Time Protocol client as specified in RFC 868, as well as an SNTP Protocol.

The address of the Time Server is provided in the TimeServer property. You get the time by calling the GetTime method.

The component also allows you to synchronize your system time with that of the TimeServer. This is done through the GetAndSetTime method. Calling GetAndSetTime will request the time from the server and then set the system clock to match it.

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for complete descriptions.

Idle The current status of the component.
LocalHost The name of the local host or user-assigned IP interface through which connections are initiated or accepted.
LocalTime The time returned by the TimeServer converted to local time.
Protocol The protocol used by the component.
ServerTime The time returned by the TimeServer.
TimePort The UDP port where the remote Time server is listening.
TimeServer The time server to request the time from.
Timeout A timeout for the component.

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for complete descriptions.

Config Sets or retrieves a component configuration setting.
DoEvents Processes events from the internal message queue.
GetAndSetTime Same as the GetTime method, but system clock is also set to the received time.
GetTime Sends a time request to the TimeServer to get the current time.
Interrupt Interrupt the current method.

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for complete descriptions.

Error Information about errors during data delivery.

Configuration Settings


The following is a list of configuration settings for the component with short descriptions. Click on the links for complete descriptions.

AbsoluteTimeout Determines whether timeouts are inactivity timeouts or absolute timeouts.
CodePage The system code page used for Unicode to Multibyte translations (Windows/COM only).
FirewallData Used to send extra data to the firewall.
InBufferSize The size in bytes of the incoming queue of the socket.
MaxPacketSize The maximum length of the packets that can be received.
OutBufferSize The size in bytes of the outgoing queue of the socket.
ShareLocalPort If set to True, allows more than one instance of the component to be active on the same local port.
UseConnection Determines whether to use a connected socket.
UseIPv6 Whether or not to use IPv6.

| About | Privacy Policy | Terms of Use |
© Copyright 2008 /n software inc.