mongoose/src/sntp.h

11 lines
355 B
C
Raw Normal View History

2020-12-05 11:26:32 +00:00
#pragma once
#include "net.h"
struct mg_connection *mg_sntp_connect(struct mg_mgr *mgr, const char *url,
mg_event_handler_t fn, void *fn_data);
void mg_sntp_request(struct mg_connection *c);
2021-12-21 21:50:18 +00:00
int64_t mg_sntp_parse(const unsigned char *buf, size_t len);
2024-06-10 16:12:38 -03:00
uint64_t mg_now(void); // Return milliseconds since Epoch