C AMQP Protocol Engine API  0.4
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros 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/ssl.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
50 typedef struct pn_driver_t pn_driver_t;
53 
54 typedef enum {
58 
65 
73 
80 PN_EXTERN const char *pn_driver_error(pn_driver_t *d);
81 
88 PN_EXTERN void pn_driver_trace(pn_driver_t *driver, pn_trace_t trace);
89 
97 
106 PN_EXTERN int pn_driver_wait(pn_driver_t *driver, int timeout);
107 
114 
124 
131 PN_EXTERN void pn_driver_free(pn_driver_t *driver);
132 
133 
145 PN_EXTERN pn_listener_t *pn_listener(pn_driver_t *driver, const char *host,
146  const char *port, void* context);
147 
155 
164 
168 PN_EXTERN void pn_listener_trace(pn_listener_t *listener, pn_trace_t trace);
169 
176 
184 
185 PN_EXTERN void pn_listener_set_context(pn_listener_t *listener, void *context);
186 
192 
201 
202 
203 
204 
216 PN_EXTERN pn_connector_t *pn_connector(pn_driver_t *driver, const char *host,
217  const char *port, void* context);
218 
226 
235 
241 PN_EXTERN void pn_connector_trace(pn_connector_t *connector, pn_trace_t trace);
242 
251 
260 
269 
277 
285 
295 
302 PN_EXTERN void pn_connector_set_context(pn_connector_t *connector, void *context);
303 
310 
316 
322 
331 
341 
357 
358 
359 #ifdef __cplusplus
360 }
361 #endif
362 
363 #endif /* driver.h */