Home | Contact Us | Company Profile | Products | Services | Links


Products

  Network Protocol Libraries
 ▪ Communications Libraries
  Communications Software
  Security and Encryption
  Show all products
 

Services

  Software Development
  Area of Expertise
  Recent Projects
 

About Us

  Company Profile
  Customer List
 ▪ Partners
 ▪ Become our partner
 ▪ Press Releases
 ▪ Contact Us
 

Useful Information

  Industry Links

 

  Customers say ...

I just applied the new library to my test app, made the necessary modifications and it looks very good so far.

After looking at your code very briefly it does look like it was a lot more work than I had even imagined, and I really appreciate your efforts and implementing this for us.

I will definitely get back in touch with you when we have a need for any type of network-related software development that is too time-consuming to do in-house. Of course I will also recommend your expertise to peers..

Ingmar., Netikus Ltd, USA


Current customers using
HS NTP C Library:

  Scanstar (USA)
  Netikus Ltd (USA)
  Amano Cincinnati, Inc (USA)
  KeRo Systems (Denmark)
  MLB Advanced Media (USA)

 Download User Manual
 Download Demo

License Terms  |  FAQ  |  Buy Now  |  Contact Us

HS NTP C Source Library v1.2


ORDERING INFORMATION:


 ORDER NOW

CONTACT INFORMATION:
 CONTACT US
 

Features

NTP Client Operation

Server name resolution

Non-Blocking Operation

Supports millisecond resolution

api summary

 int HsNtpInit(hs_ntp_api_t *api);

 int HsNtpDestroy(void);

 int HsNtpGetTime(hs_ntp_session_t *s);

 unsigned char *HsNtpGetErrStr (int rc);


hs NTP library architecture

The library is a stand-alone module which links directly to customer application:

customization

Hillstone Software provides additional services for customization, porting and integration of the library code to better suit the needs of your products

HS NTP Frequently Asked Questions (FAQ):

Q: We want to use HS NTP on an embedded system compiled with basic C source code. Is that possible?

A: Yes, it is possible and many of our customers purchase HS NTP for use in embedded systems. After you purchase HS NTP Library you will receive full source code in C, written in basic C style (not object oriented C++) and you can integrate / port it to your environment. We can also assist you with your integration effort. If you have any specific concerns about compatibility, please Contact Us

Q: Does HS NTP support millisecond resolution?

A: Yes, HS NTP Library supports millisecond resolution.

Q: Is the source code included when if purchase the library? What language is it developed in?

A: After you purchase HS NTP Library you will receive full source code in C language. The library is developed in basic C style (not object oriented C++).

Q: What programming languages can the library be used with?

A: C and C++

Q: What build environment and compiler used to build the library source code?

A: Microsoft Visual Studio C++ v6.0 compiler

Q: How many lines of source code and number of files does the library have?

A: Total 3219 lines of source code in 14 files.

Q: Do you have a version for Windows Mobile / Windows CE?

A: Not presently, but we plan to develop HS NTP support for Windows Mobile / Windows CE in the near future.

Q: Is HS NTP a commercial product or open source?
Q: How much does HS NTP Library cost?

A: HS NTP is a commercial product. It is NOT free or open source. You can view the pricing and ordering information here:

  Pricing and Ordering

Q: Is your library royalty-free?
Q: Where I can find legal license terms?

A: HS NTP is royalty-free. You can read legal license terms here:

  Legal License Terms

Q: Does HS NTP Library contain any open source code?

A: HS NTP Library contains no open source code

Q: Do you know if HS NTP Library might infringe any existing patents?

A: HS NTP Library does not infringe on any existing patents. It has been developed completely from scratch.

Q: Can we modify the library and make derivative works after purchase?

A: HS NTP Library source code license grants the purchaser royalty-free right to modify, re-compile, re-release HS NTP Library source code and make derivative works from HS NTP Library.

Q: Can we distribute the library as part of our products?

A: HS NTP Library source code license grants the purchaser the right to use HS NTP Library within and outside your company and distribute it as part of your company’s products.

Q: What is included in delivery when we purchase the library?

A: The following are the deliverables:

  HS NTP Library binaries and source code in C
  HS NTP Sample Application binaries and source code in C
  HS NTP Library User Manual (PDF)
  Free 1 year after-sale technical support
  Future version upgrades and bug fixes free for 1 year after purchase

Q: How can we purchase the library?

A: You can purchase online via our global re-seller Digital River. Select your license on the following page and follow instructions:

  Pricing and Ordering

Alternatively you can purchase from us directly. Please contact us with your Company Name, billing address, license type and number of licenses required. We will send you PDF invoice and bank information for wire transfer.

  Contact Us

Q: What kind of support model you offer if we purchase the library from your company?

A: After you purchase the library we offer free technical support during 1 year after purchase. This includes free bug fixes and new version upgrades. Subsequent upgrades, bug fixes and technical support shall be provided for a separately negotiated fee.

overview: HS NTP is a software library in C (supplied with full source code) which implements the client side of Network Time Protocol (NTP) over UDP socket layer according to RFC1769 and RFC1305. HS NTP Library allows a user application to synchronize local system time to remote NTP server time.



how it works

First user application calls HS NTP initialization function supplying pointers to callback functions in user code for timer management and for reporting NTP events to user.

To obtain time difference between local system and remote NTP server, the user application calls HsNtpGetTime function, specifying NTP server name or IP address and source UDP port to use.

HS NTP library then resolves the server name, formats and sends NTP time request packet according to RFC1305 and RFC1769 standard. Once HS NTP has received NTP time reply from NTP server it analyses the reply and reports the resulting time difference to user application via callback function. The parameters to this event callback contain the offset value in seconds necessary to apply to local clock in order to synchronize it to the time at remote NTP server.

Modular design makes it easy to port HS NTP protocol module to any environment. HS NTP internally at a lower layer interfaces to HS Sock library which provides UDP transport services. User application need not worry about Winsock - HS NTP does all transmission, reception and event handling over socket layer.

HS NTP Library File Structure

  • Core HS NTP Library

    • hsntp.c (18 functions, 603 lines)

    • hsntp.h (101 lines)

    • hsntp_if.h (118 lines)
       

  • UDP / TCP Socket interface library

    • hssock.c (19 functions, 760 lines)

    • hssock.h (70 lines)

    • hssock_if.h (136 lines)
       

  • List management library

    • hslist.c (15 functions, 391 lines)

    • hslist.h (84 lines)
       

  • HS NTP Demo Application

    • HsNtpDemo.c (15 functions, 686 lines)

    • StdAfx.h (47 lines)

    • resource.h (66 lines)

    • script1.rc (139 lines)


HS NTP Library Source Code License

Hillstone Software is willing to license HS NTP to you only upon the condition that you accept all the terms of this license.

1. Definitions.
This license defines and uses the following terms:

1.1. The Software – HS NTP source code and binary (machine-executable) code in electronic, printed or other form that can be distributed and/or used, accompanying documentation, graphical materials including diagrams, block-schemes, logos, graphic art, sample code in electronic or printed form, batch scripts and configuration files, used to use and/or distribute HS NTP in parts or in whole.

1.2. Licensee - a company or individual who is given the right to use and/or distribute HS NTP according to this license.

1.3. Licenser - Hillstone Software in whole represented by Hillstone Software principal officer.

1.4. Third-parties - companies and individuals that are separate legal entities and not part of the Licensee.

2. Scope of use.
2.1. This license is applied to use of The Software by any Licensee that has purchased a license, i.e. paid a license fee as defined by Hillstone Software and agreed to the terms of this license.

3. Terms of use.

3.1 The Licensee shall receive from Hillstone Software the full source code, project build environment, binary .lib, .dll and .exe files and documentation constituting HS NTP.

3.2. This license grants the Licensee non-exclusive, non-transferable, royalty-free right to install and use The Software in software development, production and deployment according to the terms of this license.

3.3 This license grants the Licensee royalty-free right to modify, re-compile, re-release The Software source code and make derivative works from The Software.

3.4. This license grants the Licensee the right to use The Software on any number of computers and / or embedded devices within the Company and to use The Software outside The Company as part of The Company’s products.

3.5. Hillstone Software shall provide Licensee with future version upgrades and bug fixes as they become available free of charge for one year following the purchase of HS NTP. Subsequent upgrades and bug fixes shall be provided for a separately negotiated fee.

4. Open Source and Patents

4.1 Hillstone software states that HS NTP contains no “open source”.

4.2 To the best of knowledge of Hillstone Software executive officers, HS NTP does not infringe on any existing patents.

5. Warranty and Disclaimer.

5.1. The Software is provided by the Licenser 'As Is'.

5.2. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSER DISCLAIMS ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE, AND THE PROVISION OF OR FAILURE TO PROVIDE SUPPORT SERVICES. THE LICENSER DOES NOT WARRANT THAT THE SOFTWARE WILL BE ERROR FREE OR WILL OPERATE WITHOUT INTERRUPTION. THE ENTIRE RISK ARISING OUT OF THE USE OR PERFORMANCE OF THE SOFTWARE AND ACCOMPANYING WRITTEN MATERIALS REMAINS WITH THE LICENSEE. THIS LIMITED WARRANTY GIVES THE LICENSEE SPECIFIC LEGAL RIGHTS. THE LICENSEE MAY HAVE OTHERS, WHICH VARY FROM STATE/JURISDICTION TO STATE/JURISDICTION.

5.3. IN NO EVENT SHALL THE LICENSER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

5.4. Recognizing the importance of The Software to the Licensee, the Licenser will attempt to fix the errors discovered in The Software given that such errors are not caused by malfunctioning of the operating environment, hardware and software errors of third-party components and by improper use or impossibility to use of The Software.

6. Governing law.
6.1. This license will be governed by the laws of The Republic of Ireland. Should you have any questions regarding this license, you may contact the Licenser by writing to Hillstone Software, 36 Wheatfield Grove, Dublin 22, The Republic of Ireland.

7. General Provisions.
7.1. If any part of this Agreement is found void and unenforceable, it will not affect the validity of the balance of the license, which shall remain valid and enforceable according to its terms.

7.2. The license shall not prejudice the statutory rights of any party dealing as a consumer.

7.3. The license may only be modified by a writing signed by the principal officer of Hillstone Software.

7.4. Updates may be licensed to the Licensee by the Licenser with additional or different terms.

7.5. This is the entire agreement between the Licenser and the Licensee relating to The Software and it supersedes any prior representations, discussions, undertakings, communications or advertising relating to The Software.

 

 

Buy Now  |  Download Demo  |  Download Documentation

Copyright (c) 2005-2009. Hillstone Software. All rights reserved.