diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2000-09-15 12:05:41 (GMT) |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2000-09-15 12:05:41 (GMT) |
commit | b374a9c5044ba6e354d03f4eb382f94c2f4eda1b (patch) | |
tree | c7c52aba760123df08dd43aa959c35e6ada14f60 /tools/h5tools.c | |
parent | 2fdf107b64849155bde5ed6252b570730190bfd7 (diff) | |
download | hdf5-b374a9c5044ba6e354d03f4eb382f94c2f4eda1b.zip hdf5-b374a9c5044ba6e354d03f4eb382f94c2f4eda1b.tar.gz hdf5-b374a9c5044ba6e354d03f4eb382f94c2f4eda1b.tar.bz2 |
[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).
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r-- | tools/h5tools.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 } |