two minor bugfixes.
[vde.git] / vde-2 / packetq.h
blob18b965dae28c74f975a06c4864b6fb2f0ee8ce1e
1 /*
2 * packetq - packet queue management. try to send packets several times before discarding.
3 * Copyright 2005 Renzo Davoli
4 * Licensed under the GPLv2
5 */
7 #ifdef VDE_PQ
8 #ifndef _PACKETQ_H
9 #define _PACKETQ_H
11 extern int packetq_timeout;
13 void packetq_add(int (*sender)(int fd, int fd_ctl, void *packet, int len, void *data, int port),
14 int fd, int fd_ctl, void *packet, int len, void *data, int port);
16 void packetq_try(void);
18 void packetq_delfd(int fd);
20 int packetq_count();
21 #endif
22 #endif