Jump to content
OMRON Forums

non blocking version of GetResponse()


Recommended Posts

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)) {


EXIT(c, Name);



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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

This topic is now closed to further replies.

  • Create New...