mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:55:07 -05:00
ntp: add support for multiple suspended sockets
With some hardware it takes milliseconds to get the HW TX timestamp. Rework the code to handle multiple suspended client-only sockets at the same time in order to allow longer timeouts, which may overlap for different sources. Instead of waiting for the first read event simply suspend the socket and create timeout when the HW TX timestamp is requested.
This commit is contained in:
@@ -35,8 +35,6 @@ extern void NIO_Linux_Finalise(void);
|
||||
|
||||
extern int NIO_Linux_SetTimestampSocketOptions(int sock_fd, int client_only, int *events);
|
||||
|
||||
extern int NIO_Linux_ProcessEvent(int sock_fd, int event);
|
||||
|
||||
extern int NIO_Linux_ProcessMessage(SCK_Message *message, NTP_Local_Address *local_addr,
|
||||
NTP_Local_Timestamp *local_ts, int event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user