Annotation of embedaddon/ntp/ports/winnt/include/transmitbuff.h, revision 1.1.1.1
1.1 misho 1: #ifndef TRANSMITBUFF_H
2: #define TRANSMITBUFF_H
3:
4: #include "ntp.h"
5: #include <isc/list.h>
6:
7: /*
8: * Format of a transmitbuf. These are used by the asynchronous receive
9: * routine to store outgoing packets and related information.
10: */
11:
12: typedef struct transmitbuf transmitbuf_t;
13:
14: typedef struct transmitbuf {
15: ISC_LINK(transmitbuf_t) link;
16:
17: time_t ts; /* Time stamp for the request */
18:
19: /*
20: * union {
21: * struct pkt pkt;
22: * struct ntp_control ctlpkt;
23: *} pkt;
24: */
25: char pkt[512];
26:
27: } transmitbuf;
28:
29:
30: extern void init_transmitbuff (void);
31:
32:
33: /* freetransmitbuf - make a single transmitbuf available for reuse
34: */
35: extern void free_transmit_buffer (transmitbuf_t *);
36:
37: /* Get a free buffer (typically used so an async
38: * read can directly place data into the buffer
39: *
40: * The buffer is removed from the free list. Make sure
41: * you put it back with freetransmitbuf() or
42: */
43: extern transmitbuf_t *get_free_transmit_buffer (void);
44:
45: #endif /* TRANSMITBUFF_H */
46:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>