Sai Devasani(deleted)
04/02/2019 10:38 AM
post119630
|
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
|
|
|