printf ("Creating NetVars\n"); assignNetInt("MERGE_PID", 0, 1, mypid); printf ("MERGE pid = %d\n", mypid); readNetString("MERGE_ID", 0, 1, ScratchNetString); MERGE_ID = (char *)getNetStringMem("MERGE_ID"); strcpy (MERGE_ID, &ID[0]); /* obtain pointers to the NetVars */ readNetInt("MERGE_Action", 0, 1, &ScratchNetInt); MERGE_Action = (int *)getNetIntMem("MERGE_Action"); *MERGE_Action = 0; readNetInt("MERGE_Signal", 0, 1, &ScratchNetInt); MERGE_Signal = (int *)getNetIntMem("MERGE_Signal"); *MERGE_Signal = 0; readNetString("MERGE_Parameter", 0, 1, ScratchNetString); MERGE_Parameter = (char *)getNetStringMem("MERGE_Parameter"); sprintf (MERGE_Parameter, "undefined"); assignNetBlock("MERGE_Response", 0, NETBLOCKLENGTH, 0); MERGE_Response = (char *)getNetBlockMem("MERGE_Response"); readNetInt("MERGE_State", 0, 1, &ScratchNetInt); MERGE_State = (int *)getNetIntMem("MERGE_State"); *MERGE_State = 0; readNetInt("MERGE_Trace", 0, 1, &ScratchNetInt); MERGE_Trace = (int *)getNetIntMem("MERGE_Trace"); *MERGE_Trace = 0; readNetInt("MERGE_Paused", 0, 1, &ScratchNetInt); MERGE_Paused = (int *)getNetIntMem("MERGE_Paused"); *MERGE_Paused = 0; readNetInt("MERGE_TxEnable", 0, 1, &ScratchNetInt); MERGE_TxEnable = (int *)getNetIntMem("MERGE_TxEnable"); *MERGE_TxEnable = 0; readNetInt("MERGE_LinksAvailable", 0, 1, &ScratchNetInt); MERGE_LinksAvailable = (int *)getNetIntMem("MERGE_LinksAvailable"); *MERGE_LinksAvailable = 0;