[prev in list] [next in list] [prev in thread] [next in thread]
List: spread-users
Subject: Re: [Spread-users] spread masters help me pls
From: "Alec H. Peterson" <alec.peterson () messagesystems ! com>
Date: 2006-09-16 15:36:26
Message-ID: 343EB900-86D6-4E52-ADA6-E6BAE2DAB497 () messagesystems ! com
[Download RAW message or body]
Hi Pankaj,
On Sep 16, 2006, at 8:09, Pankaj Bhardwaj wrote:
> hi,
>
> I have to make a system whican send and receive at any time .
>
> I have made a client which can send the msg. and receive , but my
> prog. blocks at the receive call.
>
> and it is dependent that i can only send when i receive some msg.
> or i can only receive when i send some msg.
>
> i want that it should always be ready to receive and send.
>
> should i use threads or a msg queue can work .
> or is there any other option which can work.
You can use SP_poll() to determine whether or not there is a message
waiting on the mbox (that call should not block). Alternatively, you
can use select() on the mbox as well, or something similar (epoll()
on linux, for example).
Alec
_______________________________________________
Spread-users mailing list
Spread-users@lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic