ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/servlink/control.h
Revision: 32
Committed: Sun Oct 2 20:41:23 2005 UTC (18 years, 5 months ago) by knight
Content type: text/x-chdr
File size: 2223 byte(s)
Log Message:
- svn:keywords

File Contents

# Content
1 /************************************************************************
2 * IRC - Internet Relay Chat, servlink/control.h
3 *
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)
7 * any later version.
8 *
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.
13 *
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.
17 *
18 * $Id$
19 */
20
21 #ifndef INCLUDED_servlink_control_h
22 #define INCLUDED_servlink_control_h
23
24 #define CMD_SET_ZIP_OUT_LEVEL 1 /* data */
25 #define CMD_START_ZIP_OUT 2
26 #define CMD_START_ZIP_IN 3
27 #define CMD_SET_CRYPT_IN_CIPHER 4 /* data */
28 #define CMD_SET_CRYPT_IN_KEY 5 /* data */
29 #define CMD_START_CRYPT_IN 6
30 #define CMD_SET_CRYPT_OUT_CIPHER 7 /* data */
31 #define CMD_SET_CRYPT_OUT_KEY 8 /* data */
32 #define CMD_START_CRYPT_OUT 9
33 #define CMD_INJECT_RECVQ 10 /* data */
34 #define CMD_INJECT_SENDQ 11 /* data */
35 #define CMD_INIT 12
36 #define CMD_ZIPSTATS 13
37
38 #define RPL_ERROR 1 /* data */
39 #define RPL_ZIPSTATS 2 /* data */
40
41 /* flags */
42 #define COMMAND_FLAG_DATA 0x0001 /* command has data
43 following */
44 struct ctrl_command
45 {
46 unsigned int command;
47 int datalen;
48 int gotdatalen;
49 int readdata;
50 unsigned char *data;
51 };
52
53 typedef void cmd_handler(struct ctrl_command *);
54
55 struct command_def
56 {
57 unsigned int commandid;
58 cmd_handler *handler;
59 unsigned int flags;
60 };
61
62 extern struct command_def command_table[];
63 #endif /* INCLUDED_servlink_control_h */

Properties

Name Value
svn:eol-style native
svn:keywords Revision