lundi 28 septembre 2015

nanomsg When Recv takes longer time duration

In one of my programme, i needed a light weight IPC and i started using nanomsg.Examples available at nanomsg Example (With few changes in header for Linux machine) worked perfectly. Results were as expected. Then i put a sleep in receiver side (node0 in example) for 100us at the end of while loop and results were not as expected.I am only able to receive first message and rest all are lost. I put sleep in receiver end because i will be performing some operation which will take some time and hence i just wanted to check, if it still works, if control is busy doing something else. Is there any way to configure nanomsg so that no message is lost.

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire