![]() |
sockets-config.hGo to the documentation of this file.00001 00006 /* 00007 Copyright (C) 2007 Anders Hedstrom 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 as published by the Free Software Foundation; either version 2 00012 of the License, or (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 */ 00023 #ifndef _SOCKETS_CONFIG_H 00024 #define _SOCKETS_CONFIG_H 00025 00026 /* First undefine symbols if already defined. */ 00027 #undef HAVE_OPENSSL 00028 #undef USE_SCTP 00029 #undef NO_GETADDRINFO 00030 #undef ENABLE_POOL 00031 #undef ENABLE_SOCKS4 00032 #undef ENABLE_RESOLVER 00033 #undef ENABLE_RECONNECT 00034 #undef ENABLE_DETACH 00035 00036 00037 /* OpenSSL support. */ 00038 #define HAVE_OPENSSL 00039 00040 00041 /* Ipv6 support. */ 00042 //#define ENABLE_IPV6 00043 00044 00045 /* SCTP support. */ 00046 //#define USE_SCTP 00047 00048 00049 /* Define NO_GETADDRINFO if your operating system does not support 00050 the "getaddrinfo" and "getnameinfo" function calls. */ 00051 //#define NO_GETADDRINFO 00052 00053 00054 /* Connection pool support. */ 00055 //#define ENABLE_POOL 00056 00057 00058 /* Socks4 client support. */ 00059 //#define ENABLE_SOCKS4 00060 00061 00062 /* Asynchronous resolver. */ 00063 #define ENABLE_RESOLVER 00064 00065 00066 /* Enable TCP reconnect on lost connection. 00067 Socket::OnReconnect 00068 Socket::OnDisconnect 00069 */ 00070 #define ENABLE_RECONNECT 00071 00072 00073 /* Enable socket thread detach functionality. */ 00074 #define ENABLE_DETACH 00075 00076 00077 00078 /* Resolver uses the detach function so either enable both or disable both. */ 00079 #ifndef ENABLE_DETACH 00080 #undef ENABLE_RESOLVER 00081 #endif 00082 00083 00084 #endif // _SOCKETS_CONFIG_H 00085 |