| 1 |
'\" t |
| 2 |
.\" Title: ne_has_support |
| 3 |
.\" Author: |
| 4 |
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> |
| 5 |
.\" Date: 3 May 2011 |
| 6 |
.\" Manual: neon API reference |
| 7 |
.\" Source: neon 0.29.6 |
| 8 |
.\" Language: English |
| 9 |
.\" |
| 10 |
.TH "NE_HAS_SUPPORT" "3" "3 May 2011" "neon 0.29.6" "neon API reference" |
| 11 |
.\" ----------------------------------------------------------------- |
| 12 |
.\" * Define some portability stuff |
| 13 |
.\" ----------------------------------------------------------------- |
| 14 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 |
.\" http://bugs.debian.org/507673 |
| 16 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 |
.ie \n(.g .ds Aq \(aq |
| 19 |
.el .ds Aq ' |
| 20 |
.\" ----------------------------------------------------------------- |
| 21 |
.\" * set default formatting |
| 22 |
.\" ----------------------------------------------------------------- |
| 23 |
.\" disable hyphenation |
| 24 |
.nh |
| 25 |
.\" disable justification (adjust text to left margin only) |
| 26 |
.ad l |
| 27 |
.\" ----------------------------------------------------------------- |
| 28 |
.\" * MAIN CONTENT STARTS HERE * |
| 29 |
.\" ----------------------------------------------------------------- |
| 30 |
.SH "NAME" |
| 31 |
ne_has_support \- determine feature support status |
| 32 |
.SH "SYNOPSIS" |
| 33 |
.sp |
| 34 |
.ft B |
| 35 |
.nf |
| 36 |
#include <ne_utils\&.h> |
| 37 |
.fi |
| 38 |
.ft |
| 39 |
.HP \w'int\ ne_has_support('u |
| 40 |
.BI "int ne_has_support(int\ " "feature" ");" |
| 41 |
.SH "DESCRIPTION" |
| 42 |
.PP |
| 43 |
The |
| 44 |
\fBne_has_support\fR |
| 45 |
function can be used to determine whether a particular optional feature, given by the feature code |
| 46 |
\fIfeature\fR, is supported\&. The following feature codes are available: |
| 47 |
.PP |
| 48 |
\fBNE_FEATURE_SSL\fR |
| 49 |
.RS 4 |
| 50 |
Indicates support for SSL/TLS |
| 51 |
.RE |
| 52 |
.PP |
| 53 |
\fBNE_FEATURE_ZLIB\fR |
| 54 |
.RS 4 |
| 55 |
Indicates support for compressed responses |
| 56 |
.RE |
| 57 |
.PP |
| 58 |
\fBNE_FEATURE_IPV6\fR |
| 59 |
.RS 4 |
| 60 |
Indicates support for IPv6 |
| 61 |
.RE |
| 62 |
.PP |
| 63 |
\fBNE_FEATURE_LFS\fR |
| 64 |
.RS 4 |
| 65 |
Indicates support for large files |
| 66 |
.RE |
| 67 |
.PP |
| 68 |
\fBNE_FEATURE_SOCKS\fR |
| 69 |
.RS 4 |
| 70 |
Indicates support for SOCKSv5 |
| 71 |
.RE |
| 72 |
.PP |
| 73 |
\fBNE_FEATURE_TS_SSL\fR |
| 74 |
.RS 4 |
| 75 |
Indicates support for thread\-safe SSL initialization \(em see |
| 76 |
ne_sock_init |
| 77 |
.RE |
| 78 |
.SH "RETURN VALUE" |
| 79 |
.PP |
| 80 |
\fBne_has_support\fR |
| 81 |
returns non\-zero if the given feature is supported, or zero otherwise\&. |
| 82 |
.SH "SEE ALSO" |
| 83 |
.PP |
| 84 |
ne_version_match(3), |
| 85 |
ne_sock_init(3) |
| 86 |
.SH "AUTHOR" |
| 87 |
.PP |
| 88 |
\fBJoe Orton\fR <\&[email protected]\&> |
| 89 |
.RS 4 |
| 90 |
Author. |
| 91 |
.RE |
| 92 |
.SH "COPYRIGHT" |
| 93 |
.br |