Logo
~Sockets~
~Examples~
~Contact~


sockets-config.h

Go 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 #ifndef _RUN_DP
00027 /* First undefine symbols if already defined. */
00028 #undef HAVE_OPENSSL
00029 #undef ENABLE_IPV6
00030 #undef USE_SCTP
00031 #undef NO_GETADDRINFO
00032 #undef ENABLE_POOL
00033 #undef ENABLE_SOCKS4
00034 #undef ENABLE_RESOLVER
00035 #undef ENABLE_RECONNECT
00036 #undef ENABLE_DETACH
00037 #undef ENABLE_TRIGGERS
00038 #endif // _RUN_DP
00039 
00040 
00041 /* OpenSSL support. */
00042 #define HAVE_OPENSSL
00043 
00044 
00045 /* Ipv6 support. */
00046 //#define ENABLE_IPV6
00047 
00048 
00049 /* SCTP support. */
00050 //#define USE_SCTP
00051 
00052 
00053 /* Define NO_GETADDRINFO if your operating system does not support
00054    the "getaddrinfo" and "getnameinfo" function calls. */
00055 #define NO_GETADDRINFO
00056 
00057 
00058 /* Connection pool support. */
00059 //#define ENABLE_POOL
00060 
00061 
00062 /* Socks4 client support. */
00063 //#define ENABLE_SOCKS4
00064 
00065 
00066 /* Asynchronous resolver. */
00067 #define ENABLE_RESOLVER
00068 
00069 
00070 /* Enable TCP reconnect on lost connection.
00071         Socket::OnReconnect
00072         Socket::OnDisconnect
00073 */
00074 #define ENABLE_RECONNECT
00075 
00076 
00077 /* Enable socket thread detach functionality. */
00078 #define ENABLE_DETACH
00079 
00080 
00081 /* Enable socket to socket triggers. Not yet in use. */
00082 //#define ENABLE_TRIGGERS
00083 
00084 
00085 /* Resolver uses the detach function so either enable both or disable both. */
00086 #ifndef ENABLE_DETACH
00087 #undef ENABLE_RESOLVER
00088 #endif
00089 
00090 
00091 #endif // _SOCKETS_CONFIG_H
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4