C AMQP Protocol Engine API  0.4
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
driver_extras.h File Reference
Include dependency graph for driver_extras.h:

Go to the source code of this file.

Typedefs

typedef int pn_socket_t
 

Functions

PN_EXTERN pn_listener_tpn_listener_fd (pn_driver_t *driver, pn_socket_t fd, void *context)
 
PN_EXTERN pn_connector_tpn_connector_fd (pn_driver_t *driver, pn_socket_t fd, void *context)
 

Detailed Description

Additional API for the Driver Layer.

These additional driver functions allow the application to supply a separately created socket to the driver library.

Typedef Documentation

typedef int pn_socket_t

Function Documentation

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.

Parameters
[in]driverdriver that will 'own' this connector.
[in]fdexisting socket to use for this connector.
[in]contextapplication-supplied, can be accessed via pn_connector_context()
Returns
a new connector to the given host:port, NULL if error.
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.

Parameters
[in]driverdriver that will 'own' this listener
[in]fdexisting socket for listener to listen on
[in]contextapplication-supplied, can be accessed via pn_listener_context()
Returns
a new listener on the given host:port, NULL if error