• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

multicasocket again

Hi all
I still have problem with multicat I have to send a multicast message but the receiver open latter . My question is when I send a message so I need it to be saved in the buffer for each client then I call receive. Each client broadcast a message and join the group to reads others messages.Is there a way to synchronize this issue?
with regards
0
rana_m
Asked:
rana_m
  • 4
  • 3
1 Solution
 
OviCommented:
You know prior to sending all your clients?
If not, suposing you have in your application a broadcast emiter object, and a broadcast receiver object, you should implement an object which will retain a history of last broadcasts, and to be acesible both to emiter and receiver. When a new client will join the group, should first begin with a "Hello world ..." message. The allready present clients on that group should then serve (broadcast) their history to the new arrived one. To avoid that the new arrived  not to store the same broadcast twice, you can encode in a specific manner defined by you, the messages, so when it will try to update his own history to put in it only different messages. This could be the hour of the emitted message, along with the address of the real emiter, etc. This will work, and the 'network' should begin to have consistent data on all clients after a while.
0
 
CleanupPingCommented:
rana_m:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
jimmackCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Delete - No refund

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jimmack
EE Cleanup Volunteer
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
OviCommented:
why? It seem's that my comment contains a possible solution for the problem.
0
 
jimmackCommented:
No problem Ovi :-)

Correction posted to clean up.  Accept Ovi's comment as answer.

(I've had to correct a couple of recommendations.  Did you receive an e-mail when Cleanup ping posted?  Thanx.  Jim.)
0
 
OviCommented:
Thank you. About the email, no, I didn't received one.

Ovi
0
 
jimmackCommented:
Ah.  Maybe that explains it.  Thank you ;-)
0
 
OviCommented:
Thank you too.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now