C AMQP Protocol Engine API  0.7
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
driver.h
Go to the documentation of this file.
1 #ifndef PROTON_DRIVER_H
2 #define PROTON_DRIVER_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/error.h>
27 #include <proton/engine.h>
28 #include <proton/sasl.h>
29 #include <proton/selectable.h>
30 #include <proton/ssl.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
51 typedef struct pn_driver_t pn_driver_t;
54 
55 typedef enum {
59 
66 
74 
81 PN_EXTERN const char *pn_driver_error(pn_driver_t *d);
82 
89 PN_EXTERN void pn_driver_trace(pn_driver_t *driver, pn_trace_t trace);
90 
98 
107 PN_EXTERN int pn_driver_wait(pn_driver_t *driver, int timeout);
108 
115 
125 
132 PN_EXTERN void pn_driver_free(pn_driver_t *driver);
133 
134 
146 PN_EXTERN pn_listener_t *pn_listener(pn_driver_t *driver, const char *host,
147  const char *port, void* context);
148 
156 
165 
169 PN_EXTERN void pn_listener_trace(pn_listener_t *listener, pn_trace_t trace);
170 
177 
185 
186 PN_EXTERN void pn_listener_set_context(pn_listener_t *listener, void *context);
187 
193 
202 
203 
204 
205 
217 PN_EXTERN pn_connector_t *pn_connector(pn_driver_t *driver, const char *host,
218  const char *port, void* context);
219 
227 
236 
242 PN_EXTERN void pn_connector_trace(pn_connector_t *connector, pn_trace_t trace);
243 
252 
261 
270 
278 
286 
295 
302 PN_EXTERN void pn_connector_set_context(pn_connector_t *connector, void *context);
303 
309 PN_EXTERN const char *pn_connector_name(const pn_connector_t *connector);
310 
317 
323 
329 
338 
348 
364 
365 
366 #ifdef __cplusplus
367 }
368 #endif
369 
370 #endif /* driver.h */