Home Java control which client receives information from server
Reply: 0

Java control which client receives information from server

tee
1#
tee Published in 2017-12-07 21:39:10Z

I have built a client/server java program that can accept multiple clients. I am able to send information to all the clients through the writeObject() and writeInt() methods from DataOuputStream and ObjectOutputStream. I however do not know how to make it so that for example only the latest client to connect to the server retrieves this information and no one else. Like for instance say I only wanted to write an output to one of the clients and not the others..Can someone provide me with good source or a nice code snippet that does something very similar to what I'm asking?

Thanks!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.262398 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO