proton
0
|
Additional API for the Driver Layer. More...
#include <proton/import_export.h>
Go to the source code of this file.
Typedefs | |
typedef int | pn_socket_t |
Functions | |
PN_EXTERN pn_listener_t * | pn_listener_fd (pn_driver_t *driver, pn_socket_t fd, void *context) |
Create a listener using the existing file descriptor. | |
PN_EXTERN pn_connector_t * | pn_connector_fd (pn_driver_t *driver, pn_socket_t fd, void *context) |
Create a connector using the existing file descriptor. |
Additional API for the Driver Layer.
These additional driver functions allow the application to supply a separately created socket to the driver library.
typedef int pn_socket_t |
PN_EXTERN pn_connector_t* pn_connector_fd | ( | pn_driver_t * | driver, |
pn_socket_t | fd, | ||
void * | context | ||
) |
Create a connector using the existing file descriptor.
[in] | driver | driver that will 'own' this connector. |
[in] | fd | existing socket to use for this connector. |
[in] | context | application-supplied, can be accessed via pn_connector_context() |
PN_EXTERN pn_listener_t* pn_listener_fd | ( | pn_driver_t * | driver, |
pn_socket_t | fd, | ||
void * | context | ||
) |
Create a listener using the existing file descriptor.
[in] | driver | driver that will 'own' this listener |
[in] | fd | existing socket for listener to listen on |
[in] | context | application-supplied, can be accessed via pn_listener_context() |