C AMQP Protocol Engine API  0.7
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
connection.h
Go to the documentation of this file.
1 #ifndef PROTON_CONNECTION_H
2 #define PROTON_CONNECTION_H 1
3 
4 /*
5  *
6  * Licensed to the Apache Software Foundation (ASF) under one
7  * or more contributor license agreements. See the NOTICE file
8  * distributed with this work for additional information
9  * regarding copyright ownership. The ASF licenses this file
10  * to you under the Apache License, Version 2.0 (the
11  * "License"); you may not use this file except in compliance
12  * with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing,
17  * software distributed under the License is distributed on an
18  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19  * KIND, either express or implied. See the License for the
20  * specific language governing permissions and limitations
21  * under the License.
22  *
23  */
24 
25 #include <proton/import_export.h>
26 #include <proton/type_compat.h>
27 #include <stddef.h>
28 #include <sys/types.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
47 #define PN_LOCAL_UNINIT (1)
48 
51 #define PN_LOCAL_ACTIVE (2)
52 
55 #define PN_LOCAL_CLOSED (4)
56 
59 #define PN_REMOTE_UNINIT (8)
60 
63 #define PN_REMOTE_ACTIVE (16)
64 
67 #define PN_REMOTE_CLOSED (32)
68 
73 #define PN_LOCAL_MASK (PN_LOCAL_UNINIT | PN_LOCAL_ACTIVE | PN_LOCAL_CLOSED)
74 
79 #define PN_REMOTE_MASK (PN_REMOTE_UNINIT | PN_REMOTE_ACTIVE | PN_REMOTE_CLOSED)
80 
87 
98 
114 
133 PN_EXTERN void pn_connection_collect(pn_connection_t *connection, pn_collector_t *collector);
134 
146 
156 PN_EXTERN void pn_connection_set_context(pn_connection_t *connection, void *context);
157 
165 
175 
187 
197 
215 
231 
242 PN_EXTERN const char *pn_connection_get_container(pn_connection_t *connection);
243 
250 PN_EXTERN void pn_connection_set_container(pn_connection_t *connection, const char *container);
251 
262 PN_EXTERN const char *pn_connection_get_hostname(pn_connection_t *connection);
263 
270 PN_EXTERN void pn_connection_set_hostname(pn_connection_t *connection, const char *hostname);
271 
287 
302 
320 
338 
355 
369 
383 
397 
408 
412 #ifdef __cplusplus
413 }
414 #endif
415 
416 #endif /* connection.h */