diff options
author | Wez Furlong <wez@php.net> | 2003-11-27 17:39:01 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-11-27 17:39:01 +0000 |
commit | 3ee72aa5be43a26a96ec6cfab1cc96afd6ee73cb (patch) | |
tree | 61bd6491bc260c01f04220f06fb73eb59811aac3 /main/php_streams.h | |
parent | 43698d6dbb66aed8ede33da1eaa886d86cce138e (diff) | |
download | php-git-3ee72aa5be43a26a96ec6cfab1cc96afd6ee73cb.tar.gz |
port "liveness" checks and a couple of other things from the 4.3 branch.
Liveness checks are used to validate persistent socket connects when they
are re-used.
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 793878a488..6496018931 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -358,6 +358,10 @@ PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize TSRM #define PHP_STREAM_OPTION_META_DATA_API 11 /* ptrparam is a zval* to which to add meta data information */ #define php_stream_populate_meta_data(stream, zv) (_php_stream_set_option((stream), PHP_STREAM_OPTION_META_DATA_API, 0, zv TSRMLS_CC) == PHP_STREAM_OPTION_RETURN_OK ? 1 : 0) +/* Check if the stream is still "live"; for sockets/pipes this means the socket + * is still connected; for files, this does not really have meaning */ +#define PHP_STREAM_OPTION_CHECK_LIVENESS 12 /* no parameters */ + #define PHP_STREAM_OPTION_RETURN_OK 0 /* option set OK */ #define PHP_STREAM_OPTION_RETURN_ERR -1 /* problem setting option */ #define PHP_STREAM_OPTION_RETURN_NOTIMPL -2 /* underlying stream does not implement; streams can handle it instead */ |