[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SRM question - C




Hi,

I would like to test SRM library in a distributed application (written in
C) . It is not known from the beginning of the application which member
will send messages. In the C example provided with the library all the
data is sent before the application enters the do_eventloop().

I tried to use two threads. The main thread execute the SRM initialization
and creates a thread that enters the do_eventLoop. After that, it will
wait for user inputs and send data  using srm_send.
Unfortunately, this example worked only if SRM has 2 members. For more
than 2 members the application died and I did not discover the problem.

Any suggestion is welcomed,

Thank you,

Adrian

------------------------------------------------------
Phone home  : 607-273-4467
Phone office : 607-255-3495
Address : 407 Lake Street Apt. B31, Ithaca, NY, 14850