Blob Blame History Raw
'\" t
.\"     Title: ne_has_support
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\"      Date: 30 September 2016
.\"    Manual: neon API reference
.\"    Source: neon 0.30.2
.\"  Language: English
.\"
.TH "NE_HAS_SUPPORT" "3" "30 September 2016" "neon 0.30.2" "neon API reference"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
ne_has_support \- determine feature support status
.SH "SYNOPSIS"
.sp
.ft B
.nf
#include <ne_utils\&.h>
.fi
.ft
.HP \w'int\ ne_has_support('u
.BI "int ne_has_support(int\ " "feature" ");"
.SH "DESCRIPTION"
.PP
The
\fBne_has_support\fR
function can be used to determine whether a particular optional feature, given by the feature code
\fIfeature\fR, is supported\&. The following feature codes are available:
.PP
\fBNE_FEATURE_SSL\fR
.RS 4
Indicates support for SSL/TLS
.RE
.PP
\fBNE_FEATURE_ZLIB\fR
.RS 4
Indicates support for compressed responses
.RE
.PP
\fBNE_FEATURE_IPV6\fR
.RS 4
Indicates support for IPv6
.RE
.PP
\fBNE_FEATURE_LFS\fR
.RS 4
Indicates support for large files
.RE
.PP
\fBNE_FEATURE_SOCKS\fR
.RS 4
Indicates support for SOCKSv5
.RE
.PP
\fBNE_FEATURE_TS_SSL\fR
.RS 4
Indicates support for thread\-safe SSL initialization \(em see
ne_sock_init
.RE
.SH "RETURN VALUE"
.PP
\fBne_has_support\fR
returns non\-zero if the given feature is supported, or zero otherwise\&.
.SH "SEE ALSO"
.PP
ne_version_match(3),
ne_sock_init(3)
.SH "AUTHOR"
.PP
\fBJoe Orton\fR <\&neon@lists.manyfish.co.uk\&>
.RS 4
Author.
.RE
.SH "COPYRIGHT"
.br