From b374a9c5044ba6e354d03f4eb382f94c2f4eda1b Mon Sep 17 00:00:00 2001 From: Thomas Radke Date: Fri, 15 Sep 2000 07:05:41 -0500 Subject: [svn-r2563] Purpose: Added the Stream Virtual File Driver to the list of drivers used for trying to open a file via h5dump_fopen(). Description: The Stream VFD was added at bottom of the driver list for h5dump_fopen(). If no driver succeeded to open a file given by its filename the Stream VFD would try to do so by parsing the filename as an 'hostname:port' argument, open a socket to that address and read read the file. This feature can be used to h5ls/h5dump streamed files. Platforms: All platforms (also between heterogenous). --- tools/h5tools.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/h5tools.c b/tools/h5tools.c index ee056c6..d4ece5c 100644 --- a/tools/h5tools.c +++ b/tools/h5tools.c @@ -2235,6 +2235,9 @@ get_objectname(table_t* table, int idx) * Robb Matzke, 2000-06-23 * Changed name from H5ToolsFopen() so it jives better with * the names we already have at the top of this source file. + * + * Thomas Radke, 2000-09-12 + * Added Stream VFD to the driver[] array. *-----------------------------------------------------------------------*/ hid_t h5dump_fopen(const char *fname, char *drivername, size_t drivername_size) @@ -2271,6 +2274,13 @@ h5dump_fopen(const char *fname, char *drivername, size_t drivername_size) driver[ndrivers].fapl = fapl = H5Pcreate(H5P_FILE_ACCESS); H5Pset_fapl_multi(fapl, NULL, NULL, NULL, NULL, TRUE); ndrivers++; + +#ifdef H5_HAVE_STREAM + driver[ndrivers].name = "stream"; + driver[ndrivers].fapl = fapl = H5Pcreate(H5P_FILE_ACCESS); + H5Pset_fapl_stream(fapl, NULL); + ndrivers++; +#endif #endif } -- cgit v0.12