mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 06:15:07 -05:00
ntp: store socket in NTP instance
This is preparation for separate client sockets.
This commit is contained in:
6
ntp_io.h
6
ntp_io.h
@@ -37,6 +37,12 @@ extern void NIO_Initialise(int family);
|
||||
/* Function to finalise the module */
|
||||
extern void NIO_Finalise(void);
|
||||
|
||||
/* Function to obtain a socket for sending client packets */
|
||||
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 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