diff --git a/cmRtNet.c b/cmRtNet.c index f943851..f0c78da 100644 --- a/cmRtNet.c +++ b/cmRtNet.c @@ -803,15 +803,20 @@ void cmRtNetTest( cmCtx_t* ctx, bool mstrFl ) cmUdpPort_t port = 5876; _cmRtNetTest_t* p = &t; cmRtNetRC_t rc = kOkNetRC; + unsigned hn = cmUdpHostNameMaxCharCount(); + cmChar_t hostNameStr[ hn ]; memset(&t,0,sizeof(t)); + if( cmUdpHostName(hostNameStr,hn) != kOkUdpRC ) + goto errLabel; + if( cmThreadCreate(&p->thH,_cmRtNetTestThreadFunc,p,&ctx->rpt) != kOkThRC ) goto errLabel; if((rc = cmRtNetAlloc(ctx,&p->netH,_cmRtNetTestRecv,p)) != kOkNetRC ) goto errLabel; - if((rc = cmRtNetCreateNode(p->netH, "thunk", NULL, port )) != kOkNetRC) + if((rc = cmRtNetCreateNode(p->netH, hostNameStr, NULL, port )) != kOkNetRC) goto errLabel; if( mstrFl )