| 1 |
<refentry id="reffeat"> |
| 2 |
|
| 3 |
<refmeta> |
| 4 |
<refentrytitle>ne_has_support</refentrytitle> |
| 5 |
<manvolnum>3</manvolnum> |
| 6 |
</refmeta> |
| 7 |
|
| 8 |
<refnamediv> |
| 9 |
<refname id="ne_has_support">ne_has_support</refname> |
| 10 |
<refpurpose>determine feature support status</refpurpose> |
| 11 |
</refnamediv> |
| 12 |
|
| 13 |
<refsynopsisdiv> |
| 14 |
|
| 15 |
<funcsynopsis> |
| 16 |
|
| 17 |
<funcsynopsisinfo>#include <ne_utils.h></funcsynopsisinfo> |
| 18 |
|
| 19 |
<funcprototype> |
| 20 |
<funcdef>int <function>ne_has_support</function></funcdef> |
| 21 |
<paramdef>int <parameter>feature</parameter></paramdef> |
| 22 |
</funcprototype> |
| 23 |
|
| 24 |
</funcsynopsis> |
| 25 |
|
| 26 |
</refsynopsisdiv> |
| 27 |
|
| 28 |
<refsect1> |
| 29 |
<title>Description</title> |
| 30 |
|
| 31 |
<para>The <function>ne_has_support</function> function can be used |
| 32 |
to determine whether a particular optional feature, given by the |
| 33 |
feature code <parameter>feature</parameter>, is supported. The |
| 34 |
following feature codes are available: |
| 35 |
|
| 36 |
<variablelist> |
| 37 |
<varlistentry> |
| 38 |
<term><constant>NE_FEATURE_SSL</constant></term> |
| 39 |
<listitem> |
| 40 |
<simpara>Indicates support for SSL/TLS</simpara> |
| 41 |
</listitem> |
| 42 |
</varlistentry> |
| 43 |
<varlistentry> |
| 44 |
<term><constant>NE_FEATURE_ZLIB</constant></term> |
| 45 |
<listitem> |
| 46 |
<simpara>Indicates support for compressed responses</simpara> |
| 47 |
</listitem> |
| 48 |
</varlistentry> |
| 49 |
<varlistentry> |
| 50 |
<term><constant>NE_FEATURE_IPV6</constant></term> |
| 51 |
<listitem> |
| 52 |
<simpara>Indicates support for IPv6</simpara> |
| 53 |
</listitem> |
| 54 |
</varlistentry> |
| 55 |
<varlistentry> |
| 56 |
<term><constant>NE_FEATURE_LFS</constant></term> |
| 57 |
<listitem> |
| 58 |
<simpara>Indicates support for large files</simpara> |
| 59 |
</listitem> |
| 60 |
</varlistentry> |
| 61 |
<varlistentry> |
| 62 |
<term><constant>NE_FEATURE_SOCKS</constant></term> |
| 63 |
<listitem> |
| 64 |
<simpara>Indicates support for SOCKSv5</simpara> |
| 65 |
</listitem> |
| 66 |
</varlistentry> |
| 67 |
<varlistentry> |
| 68 |
<term><constant>NE_FEATURE_TS_SSL</constant></term> |
| 69 |
<listitem> |
| 70 |
<simpara>Indicates support for thread-safe SSL |
| 71 |
initialization — see <xref linkend="ne_sock_init"/></simpara> |
| 72 |
</listitem> |
| 73 |
</varlistentry> |
| 74 |
</variablelist> |
| 75 |
|
| 76 |
</para> |
| 77 |
|
| 78 |
</refsect1> |
| 79 |
|
| 80 |
<refsect1> |
| 81 |
<title>Return value</title> |
| 82 |
|
| 83 |
<para><function>ne_has_support</function> returns non-zero if |
| 84 |
the given feature is supported, or zero otherwise.</para> |
| 85 |
|
| 86 |
</refsect1> |
| 87 |
|
| 88 |
<refsect1> |
| 89 |
<title>See also</title> |
| 90 |
|
| 91 |
<para><xref linkend="refvers"/>, <xref linkend="refsockinit"/></para> |
| 92 |
</refsect1> |
| 93 |
|
| 94 |
</refentry> |
| 95 |
|