ntp: store socket in NTP instance

This is preparation for separate client sockets.
This commit is contained in:
Miroslav Lichvar
2014-03-24 16:47:58 +01:00
parent 308de81221
commit 9a657cd4a3
5 changed files with 40 additions and 6 deletions

View File

@@ -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);