proton
0
|
Additional API for the Driver Layer. More...
Go to the source code of this file.
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. More... | |
PN_EXTERN pn_socket_t | pn_listener_get_fd (pn_listener_t *listener) |
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. More... | |
PN_EXTERN pn_socket_t | pn_connector_get_fd (pn_connector_t *connector) |
Additional API for the Driver Layer.
These additional driver functions allow the application to supply a separately created socket to the driver library.
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_socket_t pn_connector_get_fd | ( | pn_connector_t * | connector | ) |
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() |
PN_EXTERN pn_socket_t pn_listener_get_fd | ( | pn_listener_t * | listener | ) |