muhstik- irc flooding solution |
git clone git://git.acid.vegas/muhstik.git |
Log | Files | Refs | Archive | README |
proxy.h (1741B)
1 /* Muhstik, Copyright (C) 2001-2002, Louis Bavoil <mulder@gmx.fr> */ 2 /* 2009-2011, Leon Kaiser <literalka@gnaa.eu> */ 3 /* */ 4 /* This program is free software; you can redistribute it and/or */ 5 /* modify it under the terms of the GNU Library General Public License */ 6 /* as published by the Free Software Foundation; either version 2 */ 7 /* of the License, or (at your option) 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 Library General Public License for more details. */ 13 14 #ifndef PROXY_H 15 #define PROXY_H 16 17 #include "clone.h" 18 19 enum states { 20 INIT, 21 WAIT_CONNECT, 22 WAIT_IDENT, 23 WAIT_IRC, 24 WAIT_SOCKS4, 25 WAIT_SOCKS5_1, 26 WAIT_SOCKS5_2, 27 WAIT_PROXY, 28 WAIT_CISCO, 29 WAIT_PASS, 30 WAIT_HOST, 31 WAIT_CMD, 32 EXIT 33 }; 34 35 int connect_clone (clone_t *clone, char *host, unsigned short port); 36 int init_vhost (int sock, char *vhost); 37 int init_socks4 (clone_t *clone); 38 int init_socks5 (clone_t *clone); 39 int init_read_socks5 (clone_t *clone); 40 int init_proxy (clone_t *clone); 41 int init_bouncer (clone_t *clone); 42 int read_cisco (clone_t *clone); 43 int readline (int s, char *buffer, size_t buffer_size); 44 int read_proxy (clone_t *clone); 45 int read_socks4 (clone_t *clone); 46 int read_socks5 (clone_t *clone); 47 void sendnick (clone_t *clone, char *nick); 48 void senduser (clone_t *clone); 49 50 #endif