Qpid Proton C API  0.17.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
proactor.h
Go to the documentation of this file.
1 #ifndef PROTON_PROACTOR_H
2 #define PROTON_PROACTOR_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 
23 #include <proton/types.h>
24 #include <proton/import_export.h>
25 #include <proton/listener.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 typedef struct pn_condition_t pn_condition_t;
64 
69 
74 void pn_proactor_free(pn_proactor_t *proactor);
75 
89 int pn_proactor_connect(pn_proactor_t *proactor, pn_connection_t *connection,
90  const char *host, const char *port);
91 
106 int pn_proactor_listen(pn_proactor_t *proactor, pn_listener_t *listener,
107  const char *host, const char *port, int backlog);
108 
127 
137 void pn_proactor_done(pn_proactor_t *proactor, pn_event_batch_t *events);
138 
151 void pn_proactor_interrupt(pn_proactor_t *proactor);
152 
163 void pn_proactor_set_timeout(pn_proactor_t *proactor, pn_millis_t timeout);
164 
175 void pn_connection_wake(pn_connection_t *connection);
176 
181 
186 
191 
196 #ifdef __cplusplus
197 }
198 #endif
199 
200 #endif /* proactor.h */