File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transfer data from thread to threads

 
zniter goh
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi how do i transfer data from one thread to another thread...
coz i doing a server using socket and when one connected client need to send a message to another client....
or u have any better idea....thanks
 
Karthik Guru
Ranch Hand
Posts: 1209
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
since all clients are talking through different socket instances, keep references to all the socket connections, possibly n an array / array list and then transmit the message across all socket connections when somec lient sends a message to the server.
karthik
Originally posted by zniter goh:
hi how do i transfer data from one thread to another thread...
coz i doing a server using socket and when one connected client need to send a message to another client....
or u have any better idea....thanks

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic