diff options
author | Sara Golemon <pollita@php.net> | 2003-07-02 22:18:59 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2003-07-02 22:18:59 +0000 |
commit | 444615e74cad9d3ff6475caf37255a5a87abef79 (patch) | |
tree | 0b0da11a08448787c2a5ed606ca97cf3b9f5bcdf /main/streams/php_stream_context.h | |
parent | d007a6ce5eb688bffb44d3be25b5aca90c4248f3 (diff) | |
download | php-git-444615e74cad9d3ff6475caf37255a5a87abef79.tar.gz |
Introduce connection pooling API. I'll use these in http/ftp fopen wrappers soon.
Diffstat (limited to 'main/streams/php_stream_context.h')
-rw-r--r-- | main/streams/php_stream_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/streams/php_stream_context.h b/main/streams/php_stream_context.h index 7bc0233028..296687e6a3 100644 --- a/main/streams/php_stream_context.h +++ b/main/streams/php_stream_context.h @@ -53,6 +53,7 @@ struct _php_stream_notifier { struct _php_stream_context { php_stream_notifier *notifier; zval *options; /* hash keyed by wrapper family or specific wrapper */ + zval *links; /* hash keyed by hostent for connection pooling */ int rsrc_id; /* used for auto-cleanup */ }; @@ -63,6 +64,13 @@ PHPAPI int php_stream_context_get_option(php_stream_context *context, PHPAPI int php_stream_context_set_option(php_stream_context *context, const char *wrappername, const char *optionname, zval *optionvalue); +PHPAPI int php_stream_context_get_link(php_stream_context *context, + const char *hostent, php_stream **stream); +PHPAPI int php_stream_context_set_link(php_stream_context *context, + const char *hostent, php_stream *stream); +PHPAPI int php_stream_context_del_link(php_stream_context *context, + php_stream *stream); + PHPAPI php_stream_notifier *php_stream_notification_alloc(void); PHPAPI void php_stream_notification_free(php_stream_notifier *notifier); |