|
发表于 2019-7-15 17:55:08
|
显示全部楼层
打算在正式版里修改为此类循环了
服务器使用7个:依次处理判断:
#define RTC_SERVER_COUNT 7
char *sntp_server[RTC_SERVER_COUNT] = {
"ntp1.aliyun.com",
"time1.cloud.tencent.com",
"cn.ntp.org.cn",
"pool.ntp.org",
"cn.pool.ntp.org",
"s1a.time.edu.cn",
"ntp.sjtu.edu.cn"
};
|
|