MobileNativeFoundation / MobileNativeFoundation/Kronos

Is it possible to use multiple NTP hosts?

Open
#72 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
699
Forks
100
PR merge metrics
No merged PRs in 30d

Description

Hello Lyft ๐Ÿ™‚๐Ÿ‘‹

I'm stepping across this project, as we're looking for NTP library. It looks great and does what we need with minimum code ๐Ÿš€. Although, I'm wondering if it's possible to specify multiple NTP hosts?

Kronos Android supports it:

val NTP_HOSTS = listOf("0.pool.ntp.org", "1.pool.ntp.org", "2.pool.ntp.org", "3.pool.ntp.org")

// ..

ntpHosts: List<String> = NTP_HOSTS

but the iOS version seems to only accept single host:

pool: String = "time.apple.com"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up โ€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Swift API that currently accepts the single pool: String = "time.apple.com" value, and compare its behavior with kronos-java/src/main/java/com/lyft/kronos/DefaultParam.kt. Determine how multiple NTP hosts should be represented and used, then verify that the Swift API supports the equivalent host-list configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, swift
Domain
mobile-dev, networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.