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 (struct nbd_handle *h);
13
15 After connecting you may call this to find out if the connection is
16 using structured replies.
17
19 This call returns a boolean value.
20
22 On error "-1" is returned.
23
24 Refer to "ERROR HANDLING" in libnbd(3) for how to get further details
25 of the error.
26
27 The following parameters must not be NULL: "h". For more information
28 see "Non-NULL parameters" in libnbd(3).
29
31 The handle must be negotiating, or connected with the server, or shut
32 down, otherwise this call will return an error.
33
35 This function first appeared in libnbd 1.2.
36
37 If you need to test if this function is available at compile time check
38 if the following macro is defined:
39
40 #define LIBNBD_HAVE_NBD_GET_STRUCTURED_REPLIES_NEGOTIATED 1
41
43 nbd_create(3), nbd_get_protocol(3),
44 nbd_get_request_structured_replies(3),
45 nbd_set_request_structured_replies(3), libnbd(3).
46
48 Eric Blake
49
50 Richard W.M. Jones
51
53 Copyright (C) 2019-2021 Red Hat Inc.
54
56 This library is free software; you can redistribute it and/or modify it
57 under the terms of the GNU Lesser General Public License as published
58 by the Free Software Foundation; either version 2 of the License, or
59 (at your option) any later version.
60
61 This library is distributed in the hope that it will be useful, but
62 WITHOUT ANY WARRANTY; without even the implied warranty of
63 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
64 Lesser General Public License for more details.
65
66 You should have received a copy of the GNU Lesser General Public
67 License along with this library; if not, write to the Free Software
68 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
69 02110-1301 USA
70
71
72
73libnbd-1.14.2 2023-n0b1d-_0g3et_structured_replies_negotiated(3)