|
@@ -803,15 +803,20 @@ void cmRtNetTest( cmCtx_t* ctx, bool mstrFl )
|
803
|
803
|
cmUdpPort_t port = 5876;
|
804
|
804
|
_cmRtNetTest_t* p = &t;
|
805
|
805
|
cmRtNetRC_t rc = kOkNetRC;
|
|
806
|
+ unsigned hn = cmUdpHostNameMaxCharCount();
|
|
807
|
+ cmChar_t hostNameStr[ hn ];
|
806
|
808
|
memset(&t,0,sizeof(t));
|
807
|
809
|
|
|
810
|
+ if( cmUdpHostName(hostNameStr,hn) != kOkUdpRC )
|
|
811
|
+ goto errLabel;
|
|
812
|
+
|
808
|
813
|
if( cmThreadCreate(&p->thH,_cmRtNetTestThreadFunc,p,&ctx->rpt) != kOkThRC )
|
809
|
814
|
goto errLabel;
|
810
|
815
|
|
811
|
816
|
if((rc = cmRtNetAlloc(ctx,&p->netH,_cmRtNetTestRecv,p)) != kOkNetRC )
|
812
|
817
|
goto errLabel;
|
813
|
818
|
|
814
|
|
- if((rc = cmRtNetCreateNode(p->netH, "thunk", NULL, port )) != kOkNetRC)
|
|
819
|
+ if((rc = cmRtNetCreateNode(p->netH, hostNameStr, NULL, port )) != kOkNetRC)
|
815
|
820
|
goto errLabel;
|
816
|
821
|
|
817
|
822
|
if( mstrFl )
|