Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

network time protocol  RSS feed

 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpURLConnection.java will let one do an http.

What if you need to use the ntp:// protocol ?

Yes, I can construct a URL.java - but will that allow me to implement the protocol in my porject ?
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client-side NTP protocol has already been implemented by the Apache Commons Net library. It is probably easier to use an open-source library, than to write your own URL stream handler.

Henry
[ February 08, 2008: Message edited by: Henry Wong ]
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see, this will be efficient. I unpacked the sources - apparently the group understands the efficacy of correctly commented code.
[ February 08, 2008: Message edited by: Nicholas Jordan ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!