1NE_SET_SESSION_FLAG(3) neon API reference NE_SET_SESSION_FLAG(3)
2
3
4
6 ne_set_session_flag, ne_get_session_flag - set and retrieve session
7 flags
8
10 #include <ne_request.h>
11
12 void ne_set_session_flag(ne_session *sess, ne_session_flag flag,
13 int value);
14
15 int ne_get_session_flag(ne_session *sess, ne_session_flag flag);
16
18 The ne_set_session_flag function enables or disables a session flag.
19 Passing a non-zero value argument enables the flag, and zero disables
20 it.
21
22 The following flags are defined:
23
24 NE_SESSFLAG_PERSIST
25 disable this flag to prevent use of persistent connections
26
27 NE_SESSFLAG_ICYPROTO
28 enable this flag to enable support for non-HTTP ShoutCast-style
29 "ICY" responses
30
31 NE_SESSFLAG_SSLv2
32 disable this flag to disable support for the SSLv2 protocol
33
34 NE_SESSFLAG_RFC4918
35 enable this flag to enable support for RFC4918-only WebDAV
36 features; losing backwards-compatibility with RFC2518 servers
37
38 NE_SESSFLAG_CONNAUTH
39 enable this flag if an RFC-violating connection-based HTTP
40 authentication scheme is in use
41
42 NE_SESSFLAG_TLS_SNI
43 disable this flag if a server is used which does not correctly
44 support the TLS SNI extension
45
46 NE_SESSFLAG_EXPECT100
47 enable this flag to enable the request flag NE_REQFLAG_EXPECT100
48 for new requests
49
51 The ne_get_session_flag function returns zero if a flag is disabled,
52 less than zero if the flag is not supported, or greater than zero if
53 the flag is enabled.
54
56 ne_session_create, ne_set_request_flag.
57
59 Joe Orton <neon@lists.manyfish.co.uk>
60 Author.
61
63neon 0.30.0 31 July 2013 NE_SET_SESSION_FLAG(3)