Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Muticasting a message over Chat  RSS feed

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
We have developed a chat kinda application. This is primarily meant to send some message to 1/many people at the same time.
we use Sockets n Serversockets for this purpose. Is there any means by which i can muticast my message to several clients when the number of clients is large. will this help me in any way.??
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Well please elaborate on the question.
Regds
Gautham Kasinath
P.S. esp. Multicating.. i didnt catch the meaning of the word.
 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gautham,
By multicasting i was referring to the posting of messages to more than one clients. In our chat application, we observed a noticable delay when messages were sent to a group of IP address( some 100's).
...regards
....saj
 
Rahul Rathore
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem may be with the capacity of the server, or with the design/algorithm of your application. What are your server specs? If you could post the source code of your chat application (or at least that part which handles the broadcast of messages), maybe some useful useful discussion could be done.
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Well temme if you are using the server to parse the destination of the message..
Well if you are then there sure will be a delay in the message recvd @ the user ends..
More over the users will be using an applet right.. and sometimes on a swing component the message to be displayed or the component being updated is a lil slow..
Please let me know of whot exactly u r doing so that I can helpyou out better.
Regds
Gautham Kasinath
You r not alone..
 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
As per the earlier designs, the client made connections to the intented users thru a URL connection. Now we have changed the design so that the server takes care of it. But i don't understand one thing. Even if we copy things from one window to the other( that tooo as soon as the user types send), yet a delay is noticed. However this delay was reduced when we moved the code( ie code to make url connection to the intented users) to the serverside...
hope that the problem is with swing components
....saj
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Well I am a bit confused about your arch. in the chat s/w.. coz I developed the same with tcp/ip connections with a Server I am running and the server takes care of routing the messages to the clients many or one..
Please temme u r arch and I shall try my best to help ya!
Regds
Gautham Kasinath
U r not alone
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by gautham kasinath:

I developed the same with tcp/ip connections with a Server I am running and the server takes care of routing the messages to the clients many or one..

I am working on a similar application . The application has to work in the following way:
1) The client first connects to the server , the authentication with the database takes place and accordingly the client is sent a message from the server ( failure or sucess) .
2) Now there has to be another interface from where a person can choose any of the connected client and start a one to one conversation with the selected client.This person is basically ment for given customer support.
Now i would realy appreciate if you could throw some light on how are you routing messeges.
That is , how is the customer care executive be able to select a pirticular client for having a one to one conversation.
Thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!