Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Timed Message Send: (4 Items)
   
Timed Message Send  
Hi,

How to unblock msgsend() after certain amount of time, if there is no msgreply().
Could anyone please us to how to do?? 

Thank you.... In Advance 

Best regards 
Sai
Re: Timed Message Send  
Re: Timed Message Send  
H iWill Miles,

Thank you for the information.

I tried using below code but it's not working. On client side if i remove "TimerTimeout()", messsage sending is getting 
is succeeded and blocked infinitely, but if i keep the same PIcall with 5 sec time, MsgSend() is unblocking immediately.
 

Server side:
na = name_attach(NULL, D_Name, 0);
MsgReceive(na->chid, &buf, sizeof(buf), NULL);

Client side:
coid = name_open(D_Name, 0);
TimerTimeout(CLOCK_REALTIME , _NTO_TIMEOUT_SEND | _NTO_TIMEOUT_REPLY, &sigeven_st, &timeout, NULL);
MsgSend(coid, &snd_buf, sizeof(snd_buf), &rcv_buf, sizeof(rcv_buf));


Thanks
Sai
Re: Timed Message Send  
What are your timeout values?  If NULL, the timeout is immediate.  Are you checking your MsgSend return value and 
errorno to ensure you are unblocking for the reason that are thinking that you are unblocking?