![]() |
sockets-config.hGo to the documentation of this file.00001 00006 /* 00007 Copyright (C) 2007-2011 Anders Hedstrom 00008 00009 This library is made available under the terms of the GNU GPL, with 00010 the additional exemption that compiling, linking, and/or using OpenSSL 00011 is allowed. 00012 00013 If you would like to use this library in a closed-source application, 00014 a separate license agreement is available. For information about 00015 the closed-source license agreement for the C++ sockets library, 00016 please visit http://www.alhem.net/Sockets/license.html and/or 00017 email license@alhem.net. 00018 00019 This program is free software; you can redistribute it and/or 00020 modify it under the terms of the GNU General Public License 00021 as published by the Free Software Foundation; either version 2 00022 of the License, or (at your option) any later version. 00023 00024 This program is distributed in the hope that it will be useful, 00025 but WITHOUT ANY WARRANTY; without even the implied warranty of 00026 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00027 GNU General Public License for more details. 00028 00029 You should have received a copy of the GNU General Public License 00030 along with this program; if not, write to the Free Software 00031 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00032 */ 00033 #ifndef _SOCKETS_CONFIG_H 00034 #define _SOCKETS_CONFIG_H 00035 00036 /* Limits */ 00037 #define TCP_LINE_SIZE 8192 00038 #define MAX_HTTP_HEADER_COUNT 200 00039 00040 #ifndef _RUN_DP 00041 /* First undefine symbols if already defined. */ 00042 #undef HAVE_OPENSSL 00043 #undef ENABLE_IPV6 00044 #undef USE_SCTP 00045 #undef NO_GETADDRINFO 00046 #undef ENABLE_POOL 00047 #undef ENABLE_SOCKS4 00048 #undef ENABLE_RESOLVER 00049 #undef ENABLE_RECONNECT 00050 #undef ENABLE_DETACH 00051 #undef ENABLE_EXCEPTIONS 00052 #undef ENABLE_XML 00053 #endif // _RUN_DP 00054 00055 00056 /* OpenSSL support. */ 00057 #define HAVE_OPENSSL 00058 00059 00060 /* Ipv6 support. */ 00061 //#define ENABLE_IPV6 00062 00063 00064 /* SCTP support. */ 00065 //#define USE_SCTP 00066 00067 00068 /* Define NO_GETADDRINFO if your operating system does not support 00069 the "getaddrinfo" and "getnameinfo" function calls. */ 00070 #define NO_GETADDRINFO 00071 00072 00073 /* Connection pool support. */ 00074 //#define ENABLE_POOL 00075 00076 00077 /* Socks4 client support. */ 00078 //#define ENABLE_SOCKS4 00079 00080 00081 /* Asynchronous resolver. */ 00082 #define ENABLE_RESOLVER 00083 00084 00085 /* Enable TCP reconnect on lost connection. 00086 Socket::OnReconnect 00087 Socket::OnDisconnect 00088 */ 00089 #define ENABLE_RECONNECT 00090 00091 00092 /* Enable socket thread detach functionality. */ 00093 #define ENABLE_DETACH 00094 00095 00096 /* Enabled exceptions. */ 00097 #define ENABLE_EXCEPTIONS 00098 00099 00100 /* XML classes. */ 00101 #define ENABLE_XML 00102 00103 00104 /* Resolver uses the detach function so either enable both or disable both. */ 00105 #ifndef ENABLE_DETACH 00106 #undef ENABLE_RESOLVER 00107 #endif 00108 00109 00110 #endif // _SOCKETS_CONFIG_H |