Name

ne_has_support — determine feature support status

Synopsis

#include <ne_utils.h>
int ne_has_support(int  feature);

Description

The ne_has_support function can be used to determine whether a particular optional feature, given by the feature code feature, is supported. The following feature codes are available:

NE_FEATURE_SSLIndicates support for SSL/TLS
NE_FEATURE_ZLIBIndicates support for compressed responses
NE_FEATURE_IPV6Indicates support for IPv6
NE_FEATURE_LFSIndicates support for large files
NE_FEATURE_SOCKSIndicates support for SOCKSv5
NE_FEATURE_TS_SSLIndicates support for thread-safe SSL initialization — see ne_sock_init

Return value

ne_has_support returns non-zero if the given feature is supported, or zero otherwise.

See also

ne_version_match, ne_sock_init