horacioaeg | 5 Mar 18:53

Doubt on receiving a response

Hello, I'll try to be as clear as I can. My application only needs to
send 0200 and receive 0210, and also if something goes wrong, send a
reverse 0420 and receive 0430. 

My custom packager is already set up according to me ISO
specifications, my doubt is when I send this ISOMsg what's the best
way of listening for a response, I'll need to have a not so big
timeout, since the user is on the other side waiting on the telephone
for a response. 

Is it better to use channel.receive()? I don't think mux is the answer
since I won't get multiple connections even though many users will use
the application simultaneously, do I need to thread this receive() to
get it to timeout?

Thanks a lot

 

Gmane