Functions | |
| void * | rxv_spin_conn_get (rxv_spin_ctx_t *ctx, const char *conninfo) |
| void * | rxv_spin_conn_set (rxv_spin_ctx_t *ctx, const char *conninfo, void *conn, apr_status_t(*cleanup)(void *data)) |
| void* rxv_spin_conn_get | ( | rxv_spin_ctx_t * | ctx, | |
| const char * | conninfo | |||
| ) |
Get a registered connection from the connection pool.
| ctx | Context | |
| conninfo | Connection string for this connection |
rxv_spin_conn_get(ctx,"openldap:ldap://ldap.example.com/dc=example,dc=com");
| void* rxv_spin_conn_set | ( | rxv_spin_ctx_t * | ctx, | |
| const char * | conninfo, | |||
| void * | conn, | |||
| apr_status_t(*)(void *data) | cleanup | |||
| ) |
Register a connection with the connection pool.
| ctx | Context | |
| conninfo | Connection string for this connection | |
| conn | Connection pointer | |
| cleanup | Cleanup function to call on pool destruction |
rxv_spin_conn_set(ctx,"openldap:ldap://host.domain/dc=example,dc=com", ldapconn,ldap_cleanup);
1.5.2