Skip to main content

Question about more peers chatting at the same time.

2 replies [Last post]
ezez85
Offline
Joined: 2009-09-30
Points: 0

Hi all,

I have create a chatting application using jxta. i create two pipe, a input pipe to listen to incoming message and output pipe to send message to other peer. It work well when i have one peer online. however, when two peers are online, i realize that i am unable to do a mass chat. The message i send only get to one peer instead of both peers. My doubt is that the input pipe and output pipe only allow to communicate between one peer. So how could i send a message through one pipe and ensure that all other peer receive my message?

Thank you.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ivarulz
Offline
Joined: 2007-08-17
Points: 0

Try using propagated pipes.
The sender sends a message on a propagated pipe, and multiple receivers can listen on that pipe.

ezez85
Offline
Joined: 2009-09-30
Points: 0

Thank you for the reply. ok i will try to change use propagation pipe. Btw, i have come across the Bi directional pipe. It will simply my design because i don't need to create two pipe in this case, but do bidirectional pipe allow me to use propagate to other peer like what you mention earlier.