Isaac
Isaac

Reputation: 11

how to get response from async query for kdb

when I send a query to kdb in async method. I can't get any response, who can help me? BTW, C++ interface is used. I use k(handle, (S)0); to get response.

Upvotes: 0

Views: 2172

Answers (2)

Rahul
Rahul

Reputation: 3969

Generally asynchronous call does not return any result .

Check these pages:

http://code.kx.com/wiki/JB:QforMortals/i_o#Asynchronous_Messages

http://code.kx.com/wiki/Startingkdbplus/ipc

Following wiki has information for C++ Api call: http://code.kx.com/q//interfaces/c-client-for-q/

It says: If the handle is <0, this is for async messaging, and the return value can be either 0 (network error) or non-zero (ok). This result should NOT be passed to r0(r).

Upvotes: 4

WooiKent Lee
WooiKent Lee

Reputation: 1311

I believe this google forum might help you to get a bit further:

https://groups.google.com/forum/?hl=en#!topic/personal-kdbplus/m_dgucgAUpU

Upvotes: 0

Related Questions