mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:55:07 -05:00
ntp: use separate connected sockets for each server
If acquisitionport is set to 0 (default), create and connect a new socket for each server instead of using one socket per address family for all servers.
This commit is contained in:
3
ntp_io.h
3
ntp_io.h
@@ -43,6 +43,9 @@ extern int NIO_GetClientSocket(NTP_Remote_Address *remote_addr);
|
||||
/* Function to obtain a socket for sending server/peer packets */
|
||||
extern int NIO_GetServerSocket(NTP_Remote_Address *remote_addr);
|
||||
|
||||
/* Function to close a socket returned by NIO_GetClientSocket() */
|
||||
extern void NIO_CloseClientSocket(int sock_fd);
|
||||
|
||||
/* Function to transmit a packet */
|
||||
extern void NIO_SendNormalPacket(NTP_Packet *packet, NTP_Remote_Address *remote_addr, NTP_Local_Address *local_addr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user