]>
jfr.im git - solanum.git/blob - servlink/servlink.h
1 /************************************************************************
2 * IRC - Internet Relay Chat, servlink/servlink.h
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 1, or (at your option)
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 * $Id: servlink.h 1285 2006-05-05 15:03:53Z nenolod $
21 #ifndef INCLUDED_servlink_servlink_h
22 #define INCLUDED_servlink_servlink_h
30 /* do not use stdin/out/err, as it seems to break on solaris */
31 #define CONTROL fds[0]
40 #define BUFLEN READLEN * 6 /* allow for decompression */
42 #define BUFLEN READLEN
50 int level
; /* compression level */
58 unsigned int active
:1;
60 unsigned char buf
[BUFLEN
* 2];
65 struct zip_state zip_state
;
70 typedef void (io_callback
) (void);
76 io_callback
*write_cb
;
79 extern struct slink_state in_state
;
80 extern struct slink_state out_state
;
81 extern struct fd_table fds
[3];
83 #endif /* INCLUDED_servlink_servlink_h */