Qpid Proton C API  0.17.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
connection_driver.h
Go to the documentation of this file.
1 #ifndef PROTON_CONNECTION_DRIVER_H
2 #define PROTON_CONNECTION_DRIVER_H 1
3 
4 /*
5  * Licensed to the Apache Software Foundation (ASF) under one
6  * or more contributor license agreements. See the NOTICE file
7  * distributed with this work for additional information
8  * regarding copyright ownership. The ASF licenses this file
9  * to you under the Apache License, Version 2.0 (the
10  * "License"); you may not use this file except in compliance
11  * with the License. You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing,
16  * software distributed under the License is distributed on an
17  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  * KIND, either express or implied. See the License for the
19  * specific language governing permissions and limitations
20  * under the License.
21  */
22 
77 #include <proton/import_export.h>
78 #include <proton/event.h>
79 #include <proton/types.h>
80 
81 #include <stdarg.h>
82 
83 #ifdef __cplusplus
84 extern "C" {
85 #endif
86 
90 typedef struct pn_connection_driver_t {
91  pn_connection_t *connection;
92  pn_transport_t *transport;
93  pn_event_batch_t batch;
95 
113 
120 
126 
136 
141 PN_EXTERN void pn_connection_driver_read_done(pn_connection_driver_t *, size_t n);
142 
147 
152 
162 
167 PN_EXTERN void pn_connection_driver_write_done(pn_connection_driver_t *, size_t n);
168 
173 
178 
183 
192 
197 
205 
215 PN_EXTERN void pn_connection_driver_errorf(pn_connection_driver_t *d, const char *name, const char *fmt, ...);
216 
220 PN_EXTERN void pn_connection_driver_verrorf(pn_connection_driver_t *d, const char *name, const char *fmt, va_list);
221 
225 PN_EXTERN void pn_connection_driver_log(pn_connection_driver_t *d, const char *msg);
226 
230 PN_EXTERN void pn_connection_driver_logf(pn_connection_driver_t *d, char *fmt, ...);
231 
235 PN_EXTERN void pn_connection_driver_vlogf(pn_connection_driver_t *d, const char *fmt, va_list ap);
236 
242 
247 #ifdef __cplusplus
248 }
249 #endif
250 
251 #endif /* connection_driver.h */