1 #if !defined __transmitbuff_h
2 #define __transmitbuff_h
5 #if defined HAVE_IO_COMPLETION_PORT
6 # include "ntp_iocompletionport.h"
11 * Format of a transmitbuf. These are used by the asynchronous receive
12 * routine to store outgoing packets and related information.
15 typedef struct transmitbuf transmitbuf_t;
17 typedef struct transmitbuf {
18 ISC_LINK(transmitbuf_t) link;
21 time_t ts; /* Time stamp for the request */
26 * struct ntp_control ctlpkt;
34 extern void init_transmitbuff P((void));
37 /* freetransmitbuf - make a single transmitbuf available for reuse
39 extern void free_transmit_buffer P((transmitbuf_t *));
41 /* Get a free buffer (typically used so an async
42 * read can directly place data into the buffer
44 * The buffer is removed from the free list. Make sure
45 * you put it back with freetransmitbuf() or
47 extern transmitbuf_t *get_free_transmit_buffer P((void));
49 #endif /* defined __transmitbuff_h */