1
0

ne_has_support.3 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. '\" t
  2. .\" Title: ne_has_support
  3. .\" Author:
  4. .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
  5. .\" Date: 21 January 2023
  6. .\" Manual: neon API reference
  7. .\" Source: neon 0.32.5
  8. .\" Language: English
  9. .\"
  10. .TH "NE_HAS_SUPPORT" "3" "21 January 2023" "neon 0.32.5" "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
  89. .RS 4
  90. Author.
  91. .RE
  92. .SH "COPYRIGHT"
  93. .br