Qpid Proton C API 0.41.1
Loading...
Searching...
No Matches
proactor_ext.h
Go to the documentation of this file.
1#ifndef PROTON_PROACTOR_EXT_H
2#define PROTON_PROACTOR_EXT_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/import_export.h>
24#include <proton/types.h>
25
26#ifdef _WIN32
27#include <stdint.h>
28typedef uintptr_t pn_socket_t;
29#else
30typedef int pn_socket_t;
31#endif
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
41
64PNP_EXTERN void pn_proactor_import_socket(pn_proactor_t *proactor, pn_connection_t *connection, pn_transport_t *transport, pn_socket_t fd);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* PROTON_PROACTOR_EXT_H */
struct pn_connection_t pn_connection_t
An AMQP Connection object.
Definition types.h:300
struct pn_proactor_t pn_proactor_t
A harness for multithreaded IO.
Definition types.h:457
struct pn_transport_t pn_transport_t
A network channel supporting an AMQP connection.
Definition types.h:450
PNP_EXTERN void pn_proactor_import_socket(pn_proactor_t *proactor, pn_connection_t *connection, pn_transport_t *transport, pn_socket_t fd)
Import an existing connected socket into the proactor and bind to a connection and transport.
AMQP and API data types.