/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.
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
Function Documentation
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.
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