From 3e1c8cbce67273e4db816c6f9d2fca6932371cde Mon Sep 17 00:00:00 2001 From: kpl Date: Fri, 26 Apr 2013 15:36:37 -0700 Subject: [PATCH] cmRtNet.c: More changes to cmRtNetTest(). --- cmRtNet.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 )