NE_SET_SESSION_FLAG(3)
πΈ NAME πΈ
ne_set_session_flag, ne_get_session_flag β set and retrieve session flags. That's the name section, bestie, and this is the NE_SET_SESSION_FLAG(3) manual page from the neon API reference. We're about to make session flags make sense. π
β¨ SYNOPSIS β¨
#include <ne_request.h>
void ne_set_session_flag(ne_session *sess, ne_session_flag flag,
int value);
int ne_get_session_flag(ne_session *sess, ne_session_flag flag);
π¦ DESCRIPTION π¦
Okay so ne_set_session_flag is the function that enables or disables a session flag. Passing a non-zero value argument enables the flag, and zero disables it. Simple as that, no cap. π
The following flags are defined β here's the whole roster, bestie:
NE_SESSFLAG_PERSIST(default on) β disable this flag to prevent use of persistent connections.NE_SESSFLAG_ICYPROTO(default off) β enable this flag to enable support for non-HTTP ShoutCast-style"ICY"responses.NE_SESSFLAG_SSLv2β this flag is ignored. It's giving "we don't do anything with this one," periodt. πNE_SESSFLAG_RFC4918(default off) β enable this flag to enable support for RFC4918-only WebDAV features; losing backwards-compatibility with RFC2518 servers.NE_SESSFLAG_CONNAUTH(default off) β enable this flag if an RFC-violating connection-based HTTP authentication scheme is in use.NE_SESSFLAG_TLS_SNI(default on) β disable this flag if a server is used which does not correctly support the TLS SNI extension.NE_SESSFLAG_EXPECT100(default off) β enable this flag to enable the request flagNE_REQFLAG_EXPECT100for new requests.NE_SESSFLAG_SHAREPOINT(default off) β enable this flag to use various workarounds to improve interoperability with SharePoint.NE_SESSFLAG_STRICT(default on) β disable this flag to parse HTTP/1.1 messages without strict requirements introduced in RFC 7230 and later.
π RETURN VALUE π
ne_get_session_flag returns zero if a flag is disabled, less than zero if the flag is not supported, or greater than zero if the flag is enabled. That's the whole vibe check: zero = off, negative = not supported, positive = on. β¨
π SEE ALSO π
Go check out ne_session_create(3) and ne_set_request_flag(3) too, bestie. π«Ά
π COPYRIGHT π
Copyright Β© 2001-2026 Joe Orton
okay bestie, that's the whole page π this gem is from the neon API reference, dated 03/20/2026 β go forth and set those session flags responsibly πβ¨
π¦ where this page comes from
- arch rolling: neon 0.37.1-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms