Hi Ming:

TIPC 1.7.5 should allow you to have your third process receive messages
from the other two processes using 2 different sockets.  If this isn't
working properly, then there's a bug in TIPC we need to fix.  However,
it may also be that your software isn't using TIPC properly -- this sort
of thing has happened before.

Can you supply us with more information about exactly how you're using
TIPC sockets?  TIPC works differently depending on the type of socket
being used (SOCK_DGRAM, SOCK_RDM, SOCK_STREAM, or SOCK_SEQPACKET), the
type of addressing being used (TIPC name vs. TIPC port id), and the type
of distribution being used (unicast or multicast).  Sample code would be
extremely helpful in allowing us to spot design or coding problems, or
to try reproducing your problem.

Regards,
Al 

> -----Original Message-----
> From: Ming Sun (xiansun) [mailto:[EMAIL PROTECTED] 
> Sent: Friday, December 14, 2007 1:11 PM
> To: Stephens, Allan; Randy MacLeod
> Cc: [email protected]
> Subject: RE: [tipc-discussion] Multiple socket supported?
> 
> Hi Al,
> 
> I am using the latest 1.7.5 plus the 1.7.5 patch.
> The problem is as following. I have 3 single threaded processes.
> Two will communicates with the third. The third process opens 
> two receiving sockets one for each to the others. The third 
> process seem receiving message from the first process that 
> register to the topology server and receive message from it.
> But the message from the other process is not received.
> Some times it receives message from both. But once the first 
> and second process die and come back. It will receive message 
> from only one of them. The sendto successes but the message 
> is not received. I just guess TIPC does not support two 
> receiving sockets or not yet support.
> 
> Thanks,
> 
> Ming
> 
> -----Original Message-----
> From: Stephens, Allan [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 14, 2007 5:36 AM
> To: Randy MacLeod; Ming Sun (xiansun)
> Cc: [email protected]
> Subject: RE: [tipc-discussion] Multiple socket supported?
> 
> It would also help to know what version of TIPC Ming is 
> using.  The socket code has been improved in the TIPC 1.7 
> stream, which fixed a number of bugs.
> 
> Regards,
> Al 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Randy MacLeod
> > Sent: Friday, December 14, 2007 12:28 AM
> > To: Ming Sun (xiansun)
> > Cc: [email protected]
> > Subject: Re: [tipc-discussion] Multiple socket supported?
> > 
> > On Dec 13, 2007 9:25 PM, Ming Sun (xiansun) 
> <[EMAIL PROTECTED]> wrote:
> > >
> > > I tried to create multiple RDM sockets and use different nameseq 
> > > addresses to receive message from different sources with select.
> > > But it is seems not reliable receive message from all
> > sources once the
> > > sender goes down and back up.
> > 
> >   What exactly do you mean by "sender goes downa and back up"?
> > How do  you know that messages appear to be dropped?
> > 
> > > Is multiple receiving  socket in one thread supported?
> > 
> > Yes.
> > 
> > If you have a server which binds addresses A, B, C to three 
> separate 
> > sockets then you will be able to call select() and receive messages.
> > There is the usual limitation that if you are doing connectionless 
> > messaging, you have to do flow-control in your application code to 
> > avoid message drops if the server should fall too far behind.
> > 
> > If this doesn't help maybe you could post your test code.
> > 
> > --
> > // Randy
> > 
> > --------------------------------------------------------------
> > -----------
> > SF.Net email is sponsored by:
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for just about anything 
> > Open Source.
> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
> > et/marketplace
> > _______________________________________________
> > tipc-discussion mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tipc-discussion
> > 
> 

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion

Reply via email to