1nbd_get_structured_replies_negotiatedL(I3Bn)NbBdD_get_structured_replies_negotiated(3)
2
3
4

NAME

6       nbd_get_structured_replies_negotiated - see if structured replies are
7       in use
8

SYNOPSIS

10        #include <libnbd.h>
11
12        int nbd_get_structured_replies_negotiated (struct nbd_handle *h);
13

DESCRIPTION

15       After connecting you may call this to find out if the connection is
16       using structured replies.
17

RETURN VALUE

19       This call returns a boolean value.
20

ERRORS

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

HANDLE STATE

28       The handle must be connected and finished handshaking with the server,
29       or shut down, otherwise this call will return an error.
30

VERSION

32       This function first appeared in libnbd 1.2.
33
34       If you need to test if this function is available at compile time check
35       if the following macro is defined:
36
37        #define LIBNBD_HAVE_NBD_GET_STRUCTURED_REPLIES_NEGOTIATED 1
38

SEE ALSO

40       nbd_create(3), nbd_get_protocol(3),
41       nbd_get_request_structured_replies(3),
42       nbd_set_request_structured_replies(3), libnbd(3).
43

AUTHORS

45       Eric Blake
46
47       Richard W.M. Jones
48
50       Copyright (C) 2019 Red Hat Inc.
51

LICENSE

53       This library is free software; you can redistribute it and/or modify it
54       under the terms of the GNU Lesser General Public License as published
55       by the Free Software Foundation; either version 2 of the License, or
56       (at your option) any later version.
57
58       This library is distributed in the hope that it will be useful, but
59       WITHOUT ANY WARRANTY; without even the implied warranty of
60       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
61       Lesser General Public License for more details.
62
63       You should have received a copy of the GNU Lesser General Public
64       License along with this library; if not, write to the Free Software
65       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
66       02110-1301 USA
67
68
69
70libnbd-1.3.7                      2020-n0b4d-_2g3et_structured_replies_negotiated(3)
Impressum