 ~Sockets~
|
C++ Socket library tutorial
|
|
Configuration
The functions of the C++ sockets library are no longer selected
by defining compile time flags (in the Makefile or in an IDE project file).
This old way of configuration has been replaced by the file
'sockets-config.h', which contains a few #define's for different functions
of the library.
Symbol | Meaning | Default |
HAVE_OPENSSL | OpenSSL support. | ON |
ENABLE_IPV6 | This makes it possible to disable ipv6 support
in the library even if your operating system supports it. | OFF |
USE_SCTP | Add class SctpSocket to the library. | OFF |
NO_GETADDRINFO | On operating systems without ipv6 support,
getaddrinfo/getnameinfo isn't available. Define this symbol to use other
methods for dns and reverse lookup. | ON |
ENABLE_POOL | Connection pool | OFF |
ENABLE_SOCKS4 | Socks4 client support | OFF |
ENABLE_RESOLVER | Support for asynchronous dns lookup.
If this symbol is defined, ENABLE_DETACH also has to be defined.
| ON |
ENABLE_RECONNECT | Tcp sockets can reconnect when connection is lost | ON |
ENABLE_DETACH | Make sockets able to detach themselves, i.e. start running
in an own thread. Needed for ENABLE_RESOLVER. | ON |
ENABLE_EXCEPTIONS | Throw exception for fatal errors (Bind, CreateSocket). | ON |
ENABLE_XML | The Xml classes (using libxml2) | OFF |
|