1 /* 2 * ---------------------------------------------------------------- 3 * ircproxy - Header 4 * ---------------------------------------------------------------- 5 * Copyright (C) 1997-2009 Jonas Kvinge 6 * 7 * This file is part of ircproxy. 8 * 9 * ircproxy is free software: you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation, either version 3 of the License, or 12 * (at your option) any later version. 13 * 14 * ircproxy is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with ircproxy. If not, see <http://www.gnu.org/licenses/>. 21 * 22 * Additional permission under GNU GPL version 3 section 7 23 * 24 * If you modify ircproxy, or any covered work, by linking or 25 * combining it with openssl (or a modified version of that library), 26 * containing parts covered by the terms of the OpenSSL License and the 27 * SSLeay License, the licensors of ircproxy grant you additional 28 * permission to convey the resulting work. 29 * 30 * $Id: ircproxy.h 54 2009-03-18 18:23:29Z jonasio $ 31 * 32 */ 33 34 #ifdef IRCPROXY_H 35 #warning "ircproxy.h already included." 36 #else 37 #define IRCPROXY_H 38 39 struct hostent; 40 41 #define PACKAGE PACKAGE_NAME 42 #define VERSION PACKAGE_VERSION 43 #define UNIXNAME PACKAGE 44 #define SHORTNAME "ircproxy" 45 #define LONGNAME "IRC Proxy/Bouncer" 46 #define DESCRIPTION "Internet Relay Chat Proxy" 47 #define AUTHORNAME "Jonas Kvinge" 48 #define AUTHORMAIL "jonas@night-light.net" 49 #define URL "http://www.ircproxy.sourceforge.net/" 50 #define COPYRIGHT "by Jonas Kvinge" 51 #define STARTUPLN1 SHORTNAME " v" VERSION 52 #define STARTUPLN2 COPYRIGHT 53 54 #define NLPRGSEC 3 55 #define NLPRGUSEC 0 56 57 #define EXITTTL 10 58 #define FLUSHTIME 45 59 60 #ifndef SOMAXCONN 61 #define SOMAXCONN 64 62 #endif 63 64 #define IRCP_USER_HOST(X) (((X->ListenS != NULL) && (X->ListenS->Host != NULL) && (strcmp(X->ListenS->Host, "*") != FALSE) && (strcmp(X->ListenS->Host, "0.0.0.0") != FALSE)) ? X->ListenS->Host : HOSTNAME) 65 #define IRCP_USER_NICK(X) (((X->ConnS != NULL) && (Conn_IsWelcome(X->ConnS))) ? X->ConnS->IRCNick : "*") 66 67 #ifndef NBLOCK_SYSV 68 #ifndef NBLOCK_BSD 69 #ifndef NBLOCK_POSIX 70 #define NBLOCK_POSIX 1 71 #endif 72 #endif 73 #endif 74 75 #endif 76