1nbd_get_structured_replies_negotiatedL(I3Bn)NbBdD_get_structured_replies_negotiated(3)
2
3
4
6 nbd_get_structured_replies_negotiated - see if structured replies are
7 in use
8
10 #include <libnbd.h>
11
12 int nbd_get_structured_replies_negotiated (
13 struct nbd_handle *h
14 );
15
17 After connecting you may call this to find out if the connection is
18 using structured replies. Note that this setting is sticky; this can
19 return true even after a second nbd_opt_structured_reply(3) returns
20 false because the server detected a duplicate request.
21
23 This call returns a boolean value.
24
26 On error -1 is returned.
27
28 Refer to "ERROR HANDLING" in libnbd(3) for how to get further details
29 of the error.
30
31 The following parameters must not be NULL: "h". For more information
32 see "Non-NULL parameters" in libnbd(3).
33
35 The handle must be negotiating, or connected with the server, or shut
36 down, otherwise this call will return an error.
37
39 This function first appeared in libnbd 1.2.
40
41 If you need to test if this function is available at compile time check
42 if the following macro is defined:
43
44 #define LIBNBD_HAVE_NBD_GET_STRUCTURED_REPLIES_NEGOTIATED 1
45
47 nbd_create(3), nbd_get_protocol(3),
48 nbd_get_request_structured_replies(3), nbd_opt_structured_reply(3),
49 nbd_set_request_structured_replies(3), libnbd(3).
50
52 Eric Blake
53
54 Richard W.M. Jones
55
57 Copyright Red Hat
58
60 This library is free software; you can redistribute it and/or modify it
61 under the terms of the GNU Lesser General Public License as published
62 by the Free Software Foundation; either version 2 of the License, or
63 (at your option) any later version.
64
65 This library is distributed in the hope that it will be useful, but
66 WITHOUT ANY WARRANTY; without even the implied warranty of
67 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
68 Lesser General Public License for more details.
69
70 You should have received a copy of the GNU Lesser General Public
71 License along with this library; if not, write to the Free Software
72 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
73 02110-1301 USA
74
75
76
77libnbd-1.16.5 2023-n0b9d-_2g6et_structured_replies_negotiated(3)