diff options
author | tradke <tradke@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2001-01-19 12:53:00 +0000 |
---|---|---|
committer | tradke <tradke@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2001-01-19 12:53:00 +0000 |
commit | 296245446e5ffd9d439309efca6aeb892004d8b5 (patch) | |
tree | 5120190aa5b289247b18ea1256b4b1a51826026e /src | |
parent | 5512aba3d7ec0a1eb0f00521ea2eebe8dac3aa86 (diff) |
Print an INFO message saying where to connect to for receiving
streamed data/cp files.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@63 0888f3d4-9f52-45d2-93bc-d00801ff5e46
Diffstat (limited to 'src')
-rw-r--r-- | src/Startup.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c index 2ba52ff..d8d85e6 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -13,6 +13,7 @@ #include "cctk.h" #include "cctk_Parameters.h" +#include "util_Network.h" #include "BetaThorns/Socket/src/SocketUtils.h" #include "CactusBase/IOUtil/src/ioutil_CheckpointRecovery.h" #include "ioStreamedHDF5GH.h" @@ -168,6 +169,7 @@ static void *IOStreamedHDF5_SetupGH (tFleshConfig *config, int myproc; int numvars; ioStreamedHDF5GH *myGH; + char hostname[1024]; /* suppress compiler warnings about unused variables */ @@ -218,6 +220,14 @@ static void *IOStreamedHDF5_SetupGH (tFleshConfig *config, close (myGH->data_socket); myGH->data_socket = -1; } + else + { + Util_GetHostName (hostname, sizeof (hostname)); + CCTK_VInfo (CCTK_THORNSTRING, + "HDF5 data streaming service started on\n" + " %s:%d", + hostname, data_port); + } } /* create timers if timing info was requested */ @@ -285,6 +295,12 @@ static void *IOStreamedHDF5_SetupGH (tFleshConfig *config, fapl.broadcast_arg = NULL; IOHDF5_ERROR (myGH->checkpoint_fapl = H5Pcreate (H5P_FILE_ACCESS)); IOHDF5_ERROR (H5Pset_fapl_stream (myGH->checkpoint_fapl, &fapl)); + + Util_GetHostName (hostname, sizeof (hostname)); + CCTK_VInfo (CCTK_THORNSTRING, + "HDF5 checkpoint streaming service started on\n" + " %s:%d", + hostname, checkpoint_port); } } #endif |