nbd_get_struct...lies_negotiated(3)
nbd_get_structured_replies_negotiated(3) π β¨
okay bestie, welcome to the LIBNBD manual β this is the page for nbd_get_structured_replies_negotiated(3), and itβs here to tell you if structured replies are in use. no cap. π«Ά
πΈ NAME πΈ
nbd_get_structured_replies_negotiated β see if structured replies are in use π
β¨ SYNOPSIS β¨
bestie, include the header and call it like this:
#include <libnbd.h>
int nbd_get_structured_replies_negotiated (
struct nbd_handle *h
);
π¦ DESCRIPTION π¦
After youβve connected, you may call this to find out if the connection is using structured replies. β¨
okay but hereβs the sticky part β literally, this setting is sticky: this can return true even after a second nbd_opt_structured_reply(3) returns false, because the server detected a duplicate request. π
also important: if the connection negotiates extended headers, this function returns true (as extended headers imply structured replies) even if no explicit request for structured replies was attempted. π
π RETURN VALUE π
This call returns a boolean value. thatβs it, thatβs the tea. periodt. π
π ERRORS π
On error -1 is returned. π
Refer to "ERROR HANDLING" in libnbd(3) for how to get further details of the error. iykyk.
The following parameters must not be NULL: "h". For more information see "Non-NULL parameters" in libnbd(3). π«Ά
π HANDLE STATE π
nbd_get_structured_replies_negotiated can be called when the handle is in the following states:
- Handle created, before connecting β β error
- Connecting β β error
- Connecting & handshaking (
opt_mode) β β allowed - Connected to the server β β allowed
- Connection shut down β β allowed
- Handle dead β β error
π VERSION π
This function first appeared in libnbd 1.2. π
If you need to test if this function is available at compile time check if the following macro is defined:
#define LIBNBD_HAVE_NBD_GET_STRUCTURED_REPLIES_NEGOTIATED 1
π₯ SEE ALSO π₯
go read these too, bestie β theyβre all part of the lore:
nbd_create(3)nbd_get_extended_headers_negotiated(3)nbd_get_protocol(3)nbd_get_request_structured_replies(3)nbd_opt_extended_headers(3)nbd_opt_structured_reply(3)nbd_set_request_structured_replies(3)libnbd(3).
π§ AUTHORS π§
the icons behind this:
- Eric Blake
- Richard W.M. Jones
π COPYRIGHT π
Copyright Red Hat
πΈ LICENSE πΈ
legal bestie time β hereβs the whole thing, unchanged:
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
okay thatβs the whole page, bestie β sourced from libnbd-1.25.8, dated 2026-10-1, and itβs the nbd_get_struct...lies_negotiated(3) page in the LIBNBD manual. mwah πβ¨
π¦ where this page comes from
- centos-stream 10: libnbd-devel 1.25.8-1.el10 Β· LGPL-2.0-or-later AND BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms