sjh Posted May 26, 2016 Share Posted May 26, 2016 We have some code in a C++ program which reads: bool ZHeadCtrl::StartTrace(Context * c) { ENTRY(c, Name); char szdata[CHAR_BUF_SIZE + 1]; if (GetResponse(const_cast("Gather.enable = 2"), szdata, CHAR_BUF_SIZE, 0)) { printf(szdata); EXIT(c, Name); return CMD_PROCESSOR_ERROR; } EXIT(c, Name); return true; } The problem is I want to make this non-blocking. I think I could substitute the GetResponse with a Command .. so something like if (Command(const_cast("Gather.enable = 2")) {...} However the documentation does not specify whether or not Command is blocking or not, nor does it tell me if it is non-blocking how I might get the response later. Please help.. Link to comment Share on other sites More sharing options...
Recommended Posts