> myServiceClientInstance->send_myMethod(...);
> // other things
> ret = myServiceClientInstance->recv_myMethod();
> 
> I've used this strategy to send a number of requests in parallel and 
then
> grab the results later.  However, recv_* will still block.
> 
> Anyone know if there's a better way to do this?

You can call peek() on the TSocket to see if there's any data.  But this 
appears to work only in non-blocking mode, and it *seems* to me that 
TSocket::open leaves the socket in blocking mode.  Anyone with better 
info?

--
STSM, WebSphere Appliance Architect
https://www.ibm.com/developerworks/mydeveloperworks/blogs/soma/

Reply via email to