mirror of
https://gitlab.com/chrony/chrony.git
synced 2026-01-20 21:00:20 -05:00
ntp: count references to NTP server sockets
Server sockets are now explicitly opened and closed for normal NTP server, NTP broadcast and NTP peering. This will allow closing the NTP port when not needed.
This commit is contained in:
3
ntp_io.h
3
ntp_io.h
@@ -47,6 +47,9 @@ extern int NIO_OpenServerSocket(NTP_Remote_Address *remote_addr);
|
||||
/* Function to close a socket returned by NIO_OpenClientSocket() */
|
||||
extern void NIO_CloseClientSocket(int sock_fd);
|
||||
|
||||
/* Function to close a socket returned by NIO_OpenServerSocket() */
|
||||
extern void NIO_CloseServerSocket(int sock_fd);
|
||||
|
||||
/* Function to check if socket is a server socket */
|
||||
extern int NIO_IsServerSocket(int sock_fd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user