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 flag NE_REQFLAG_EXPECT100 for 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 Β© 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