From 296245446e5ffd9d439309efca6aeb892004d8b5 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 19 Jan 2001 12:53:00 +0000 Subject: 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 --- src/Startup.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') 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 -- cgit v1.2.3