Loading...
Searching...
No Matches
listener.h
Go to the documentation of this file.
#ifndef PROTON_LISTENER_H
#define PROTON_LISTENER_H 1
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
#include <proton/import_export.h>
#include <proton/types.h>
#include <proton/event.h>
#ifdef __cplusplus
extern "C" {
#endif
PNP_EXTERN pn_listener_t *pn_listener(void);
PNP_EXTERN void pn_listener_free(pn_listener_t *l);
PNP_EXTERN void pn_listener_accept2(pn_listener_t *listener, pn_connection_t *connection, pn_transport_t *transport);
PNP_EXTERN void pn_listener_accept(pn_listener_t* listener, pn_connection_t *connection);
PNP_EXTERN pn_condition_t *pn_listener_condition(pn_listener_t *l);
PNP_EXTERN void *pn_listener_get_context(pn_listener_t *listener);
PNP_EXTERN void pn_listener_set_context(pn_listener_t *listener, void *context);
PNP_EXTERN pn_record_t *pn_listener_attachments(pn_listener_t *listener);
PNP_EXTERN void pn_listener_close(pn_listener_t *l);
PNP_EXTERN pn_proactor_t *pn_listener_proactor(pn_listener_t *c);
PNP_EXTERN pn_listener_t *pn_event_listener(pn_event_t *event);
PNP_EXTERN void pn_listener_raw_accept(pn_listener_t *listener, pn_raw_connection_t *raw_connection);
#ifdef __cplusplus
}
#endif
#endif /* listener.h */
event.h
Protocol and transport events.
pn_condition_t
struct pn_condition_t pn_condition_t
An AMQP Condition object.
Definition condition.h:64
pn_connection_t
struct pn_connection_t pn_connection_t
An AMQP Connection object.
Definition types.h:285
pn_event_t
struct pn_event_t pn_event_t
Notification of a state change in the protocol engine.
Definition event.h:75
pn_listener_set_context
PNP_EXTERN void pn_listener_set_context(pn_listener_t *listener, void *context)
Set a new application context for a listener object.
pn_listener_close
PNP_EXTERN void pn_listener_close(pn_listener_t *l)
Close the listener.
pn_listener_get_context
PNP_EXTERN void * pn_listener_get_context(pn_listener_t *listener)
Get the application context associated with this listener object.
pn_listener_accept2
PNP_EXTERN void pn_listener_accept2(pn_listener_t *listener, pn_connection_t *connection, pn_transport_t *transport)
Accept an incoming connection request using transport and connection, which can be configured before ...
pn_listener_proactor
PNP_EXTERN pn_proactor_t * pn_listener_proactor(pn_listener_t *c)
The proactor associated with a listener.
pn_listener_t
struct pn_listener_t pn_listener_t
A listener for incoming connections.
Definition types.h:424
pn_listener
PNP_EXTERN pn_listener_t * pn_listener(void)
Create a listener to pass to pn_proactor_listen()
pn_event_listener
PNP_EXTERN pn_listener_t * pn_event_listener(pn_event_t *event)
Return the listener associated with an event.
pn_listener_accept
PNP_EXTERN void pn_listener_accept(pn_listener_t *listener, pn_connection_t *connection)
Deprecated - Use pn_listener_accept2().
pn_listener_condition
PNP_EXTERN pn_condition_t * pn_listener_condition(pn_listener_t *l)
Get the error condition for a listener.
pn_listener_attachments
PNP_EXTERN pn_record_t * pn_listener_attachments(pn_listener_t *listener)
Get the attachments that are associated with a listener object.
pn_listener_raw_accept
PNP_EXTERN void pn_listener_raw_accept(pn_listener_t *listener, pn_raw_connection_t *raw_connection)
Accept an incoming connection request as a raw connection.
pn_listener_free
PNP_EXTERN void pn_listener_free(pn_listener_t *l)
Free a listener.
pn_proactor_t
struct pn_proactor_t pn_proactor_t
A harness for multithreaded IO.
Definition types.h:442
pn_raw_connection_t
struct pn_raw_connection_t pn_raw_connection_t
A raw network connection used with the proactor.
Definition types.h:449
pn_transport_t
struct pn_transport_t pn_transport_t
A network channel supporting an AMQP connection.
Definition types.h:435
types.h
AMQP and API data types.