File: queue.h

package info (click to toggle)
dns2tcp 0.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,268 kB
  • sloc: ansic: 5,320; sh: 3,553; makefile: 63
file content (34 lines) | stat: -rw-r--r-- 1,333 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
** Copyright (C) 2006 Olivier DEMBOUR
** $Id: queue.h,v 1.4 2009/01/09 16:40:14 dembour Exp $
**
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with This program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef __QUEUE_H__
#define __QUEUE_H__

int		queue_put_data(t_conf *conf, t_request *req, t_data *data);
t_list		*init_queue(void);
int		queue_read_tcp(t_conf *conf, t_simple_list *client);
int		queue_delete_zombie(t_conf * conf);
void		client_update_timer(struct s_simple_list *client);
int		delete_queue(struct s_list *queue);
t_simple_list   *find_client_by_session_id(t_conf *conf, uint16_t session_id);
void            queue_dump(t_simple_list *client);
int		queue_flush_expired_data(t_conf *conf);

#endif