NATS C Client with Streaming support  2.5.1
The nats.io C Client, Supported by Synadia Communications Inc.
status.h
Go to the documentation of this file.
1 // Copyright 2015-2019 The NATS Authors
2 // Licensed under the Apache License, Version 2.0 (the "License");
3 // you may not use this file except in compliance with the License.
4 // You may obtain a copy of the License at
5 //
6 // http://www.apache.org/licenses/LICENSE-2.0
7 //
8 // Unless required by applicable law or agreed to in writing, software
9 // distributed under the License is distributed on an "AS IS" BASIS,
10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 // See the License for the specific language governing permissions and
12 // limitations under the License.
13 
14 #ifndef STATUS_H_
15 #define STATUS_H_
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 
23 typedef enum
24 {
25 #if defined(NATS_CONN_STATUS_NO_PREFIX)
26  // This is deprecated and applications referencing connection
27  // status should be updated to use the values prefixed with NATS_CONN_STATUS_.
28 
29  DISCONNECTED = 0,
30  CONNECTING,
31  CONNECTED,
32  CLOSED,
33  RECONNECTING,
34  DRAINING_SUBS,
35  DRAINING_PUBS,
36 #else
44 #endif
45 
47 
49 typedef enum
50 {
51  NATS_OK = 0,
52 
58 
70 
75 
78 
87 
89 
93 
98 
101 
103 
106 
108 
112 
114 
117 
119 
123 
126 
128 
129 } natsStatus;
130 
131 #ifdef __cplusplus
132 }
133 #endif
134 
135 #endif /* STATUS_H_ */
The connection failed due to authentication error.
Definition: status.h:72
Definition: status.h:102
A buffer is not large enough to accommodate the data.
Definition: status.h:100
Definition: status.h:122
The connection is in the process or reconnecting.
Definition: status.h:41
Definition: status.h:92
The connection is draining subscriptions.
Definition: status.h:42
The action is not permitted.
Definition: status.h:73
Definition: status.h:64
Definition: status.h:113
Definition: status.h:107
Definition: status.h:81
Definition: status.h:66
Definition: status.h:69
No responders were running when the server received the request.
Definition: status.h:127
natsStatus
Status returned by most of the APIs.
Definition: status.h:49
The connection is connected.
Definition: status.h:39
Generic error.
Definition: status.h:53
Definition: status.h:88
natsConnStatus
The connection state.
Definition: status.h:23
The server does not support this action.
Definition: status.h:116
The library is not yet initialized.
Definition: status.h:111
Definition: status.h:118
Definition: status.h:97
The server expects a TLS connection.
Definition: status.h:68
Definition: status.h:74
IO Error (network communication).
Definition: status.h:56
Definition: status.h:54
The connection is in the process or connecting.
Definition: status.h:38
The connection has been disconnected.
Definition: status.h:37
Definition: status.h:62
The connection is closed.
Definition: status.h:40
Some system function returned an error.
Definition: status.h:105
The connection is draining publishers.
Definition: status.h:43
Definition: status.h:95
An invalid queue name was passed when creating a queue subscription.
Definition: status.h:125
The library failed to initialize.
Definition: status.h:110
Timeout must be positive numbers.
Definition: status.h:86
Invalid subject, for instance NULL or empty string.
Definition: status.h:80
Success.
Definition: status.h:51
Definition: status.h:57
Definition: status.h:60
Definition: status.h:77
Definition: status.h:84