/builddir/build/BUILD/qpid-proton-0.4/proton-c/include/proton/driver_extras.h File Reference

Additional API for the Driver Layer. More...

#include <proton/import_export.h>

Go to the source code of this file.

Defines

#define PROTON_DRIVER_H_EXTRAS   1

Typedefs

typedef int pn_socket_t

Functions

PN_EXTERN pn_listener_tpn_listener_fd (pn_driver_t *driver, pn_socket_t fd, void *context)
 Create a listener using the existing file descriptor.
PN_EXTERN pn_connector_tpn_connector_fd (pn_driver_t *driver, pn_socket_t fd, void *context)
 Create a connector using the existing file descriptor.

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.


Define Documentation

#define PROTON_DRIVER_H_EXTRAS   1

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] 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()
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] 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()
Returns:
a new listener on the given host:port, NULL if error
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 8 Apr 2013 for proton by  doxygen 1.6.1