Commit 32ef4531 authored by Philip Carns's avatar Philip Carns
Browse files

get sleep example to try both tcp and sm

parent bcf55c69
......@@ -56,10 +56,15 @@ int main(int argc, char **argv)
/***************************************/
hg_class = HG_Init("tcp://localhost:1234", HG_FALSE);
if(!hg_class)
{
/* if tcp didn't work, try sm */
hg_class = HG_Init("sm://13/13", HG_FALSE);
if(!hg_class)
{
fprintf(stderr, "Error: HG_Init()\n");
return(-1);
}
}
hg_context = HG_Context_create(hg_class);
if(!hg_context)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment